-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
82 lines (81 loc) · 1.72 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
74
75
76
77
78
79
80
81
82
version: '3.7'
services:
db:
image: postgres:12.2-alpine
restart: unless-stopped
container_name: graphql-server-postgres
ports:
- "5432:5432"
volumes:
- "dbdata:/var/lib/postgresql/data"
networks:
- db
environment:
POSTGRES_HOST_AUTH_METHOD: trust #Never use in production!
web:
build: .
image: graphql-server-web:2.6.1
container_name: graphql-server-web
env_file:
- env.development
networks:
- db
- redis
ports:
- "3000:3000"
depends_on:
- db
cron:
build: .
image: graphql-server-web:2.6.1
container_name: graphql-server-cron
env_file:
- env.development
networks:
- db
depends_on:
- db
volumes:
- ./crontabs:/etc/crontabs:ro
entrypoint: ["/usr/sbin/crond", "-f", "-l", "8"]
redis:
image: redis:5.0.8-alpine3.11
restart: unless-stopped
container_name: graphql-server-redis
volumes:
- "redisdata:/data"
networks:
- redis
ports:
- '6379:6379'
command: ["redis-server", "--appendonly", "yes", "--requirepass", "$REDIS_PASSWORD"]
worker_vip:
build: .
image: graphql-server-web:2.6.1
container_name: graphql-server-worker-vip
env_file:
- env.development
networks:
- db
- redis
depends_on:
- db
command: ["bundle", "exec", "sidekiq", "-q", "vip"]
worker_plebs:
build: .
image: graphql-server-web:2.6.1
container_name: graphql-server-worker-plebs
env_file:
- env.development
networks:
- db
- redis
depends_on:
- db
command: ["bundle", "exec", "sidekiq", "-q", "vip", "-q", "plebs"]
volumes:
dbdata:
redisdata:
networks:
db:
redis: