-
Notifications
You must be signed in to change notification settings - Fork 28
/
compose.base.yml
70 lines (69 loc) · 1.77 KB
/
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
68
69
70
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}
- HOSTS=${HOSTS}
- CACHE_BACKEND=${CACHE_BACKEND}
- CACHE_URL=${CACHE_URL}
- CACHE_OPTIONS=${CACHE_OPTIONS}
- OPENSEARCH_ADMIN=${OPENSEARCH_ADMIN}
- OPENSEARCH_PASSWORD=${OPENSEARCH_PASSWORD}
- OPENSEARCH_HOSTS=${OPENSEARCH_HOSTS}
volumes:
- photos:/openimis-be/openIMIS/images/insurees
depends_on:
db:
condition: service_healthy
networks:
openimis-net:
restart: always
services:
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
command: start
worker:
<<: *default-api
command: worker
deploy:
mode: replicated
replicas: ${WORKER_REPLICAS:-3}
rabbitmq:
image: rabbitmq:3-management
restart: always
networks:
openimis-net:
networks:
openimis-net:
name: "${PROJECT_NAME:-openimis}-net"
volumes:
database:
photos: