-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.local.yml
99 lines (92 loc) · 2.09 KB
/
docker-compose.local.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.7'
services:
db:
image: postgres:12
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
networks:
- my-network
ports:
- ${POSTGRES_PORT}:5432
volumes:
- pgdata:/var/lib/postgresql/data
gql:
image: hasura/graphql-engine:v2.7.0
ports:
- ${HASURA_PORT}:8080
env_file:
- .env
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_SECRET}
WEBHOOK_URL: http://web:${PORT}/submit
networks:
- my-network
depends_on:
- db
restart: always
redis:
image: redis:alpine
# ports:
# - 127.0.0.1:${QUEUE_PORT}:6379
command: ["redis-server", "--appendonly", "yes", "--replica-read-only", "no"]
networks:
- my-network
volumes:
- ./redis-data:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf
restart: on-failure
redis-ui:
# container_name: redis-ui
image: redislabs/redisinsight:latest
restart: always
networks:
- my-network
volumes:
- redisinsight:/db
ports:
- 8088:8001
# cdac:
# image: samagragovernance/cdac-service:latest
# restart: always
# networks:
# - my-network
# environment:
# USERNAME: "${USERNAME}"
# SENDER_ID: "${SENDER_ID}"
# PASSWORD: "${PASSWORD}"
# SECURE_KEY: "${SECURE_KEY}"
# ports:
# - "${CDAC_PORT}:8080"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://cdac:8080/api"]
# interval: 2s
# timeout: 5s
# retries: 20
web:
build:
dockerfile: Dockerfile.local
context: .
networks:
- my-network
env_file:
- .env
depends_on:
- redis
- gql
- db
ports:
- '${PORT}:3000'
restart: always
volumes:
- ./src:/app/src # using local volume
volumes:
pgdata:
redisinsight:
driver: local
networks:
my-network:
driver: bridge