-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (68 loc) · 1.85 KB
/
docker-compose.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
71
72
73
version: "3"
services:
# broker:
# container_name: broker
# networks:
# - broker
# image: "docker.io/bitnami/rabbitmq:latest"
# environment:
# - RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
# - RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
# ports:
# - "4369:4369"
# - "5672:5672"
# - "25672:25672"
# - "15672:15672"
# volumes:
# - ${RABBITMQ_DATA_DIR}:/bitnami
db:
image: postgres:12
ports:
- "${DB_PORT}:5432"
env_file:
- .env
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ${DB_DATA_DIR}:/var/lib/postgresql/data/pgdata
gql:
image: ${HASURA_VERSION}
ports:
- "5002:8080"
depends_on:
- db
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USERNAME}:${DB_PASSWORD}@db:5432/${DB_NAME}
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_PASS}
cdac-service:
image: samagragovernance/cdac-service:latest
restart: always
environment:
USERNAME: "${CDAC_USERNAME}"
SENDER_ID: "${CDAC_SENDER_ID}"
PASSWORD: "${CDAC_PASSWORD}"
SECURE_KEY: "${CDAC_SECURE_KEY}"
ports:
- "5003:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://cdac:8080/api"]
interval: 2s
timeout: 5s
retries: 20
brokerOfficial:
image: rabbitmq:management
environment:
RABBITMQ_DEFAULT_USER: "${RABBITMQ_USERNAME}"
RABBITMQ_DEFAULT_PASS: "${RABBITMQ_PASSWORD}"
ports:
- "5672:5672"
- "15672:15672"
networks:
broker:
driver: bridge