-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.base.yml
67 lines (65 loc) · 1.71 KB
/
docker-compose.base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#version: "3.7"
x-api: &default-api
image: ghcr.io/openimis/openimis-be:${BE_TAG:-develop}
environment:
- DB_DEFAULT=${DB_DEFAULT:-postgresql}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- SITE_ROOT=api
- SITE_URL=${DOMAIN}
- CELERY_BROKER_URL=amqp://rabbitmq
- MODE=${MODE:-Prod}
- CSRF_TRUSTED_ORIGINS=http://localhost
volumes:
- photos:/openimis-be/openIMIS/images/insurees
depends_on:
db:
condition: service_healthy
networks:
openimis-net:
restart: always
services:
frontend:
container_name: ${PROJECT_NAME:-openimis}-frontend
image: ghcr.io/openimis/openimis-fe:${FE_TAG:-develop}
restart: always
environment:
- REACT_APP_API_URL=api
- NEW_OPENIMIS_HOST=${DOMAIN}
- OPENIMIS_CONF_JSON=${OPENIMIS_FE_CONF_JSON}
- OPENSEARCH_BASIC_TOKEN=${OPENSEARCH_BASIC_TOKEN}
networks:
openimis-net:
ports:
- ${HTTP_PORT:-80}:80
- ${HTTPS_PORT:-443}:443
depends_on:
- backend
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
# comment the following line if you are using your own gateway
- ./conf/nginx:/conf/
backend:
<<: *default-api
container_name: ${PROJECT_NAME:-openimis}-api
command: start
worker:
<<: *default-api
container_name: ${PROJECT_NAME:-openimis}-worker
command: worker
rabbitmq:
container_name: ${PROJECT_NAME:-openimis}-rabbitmq
image: rabbitmq:3-management
restart: always
networks:
openimis-net:
networks:
openimis-net:
name: "${PROJECT_NAME:-openimis}-net"
volumes:
database:
photos: