-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
77 lines (71 loc) · 1.44 KB
/
docker-compose.yaml
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
version: '3.7'
networks:
zippy:
services:
api:
image: ${DOCKER_REGISTRY}/zippy-api:$DOCKER_TAG
build:
context: ./api
target: zippy-api
networks:
- zippy
environment:
- APP_ENV
- DATABASE_URL
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- TRUSTED_PROXIES
- CLIENT_ID
- CLIENT_SECRET
volumes:
- zippy_vol:/data
depends_on:
- rabbitmq
ports:
- ${ZIPPY_API_PORT}:80
worker:
image: ${DOCKER_REGISTRY}/zippy-worker:$DOCKER_TAG
build:
context: ./api
target: zippy-worker
networks:
- zippy
depends_on:
- rabbitmq
environment:
- APP_ENV
- DATABASE_URL
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- VERIFY_SSL
volumes:
- zippy_vol:/data
cron:
image: ${DOCKER_REGISTRY}/zippy-worker:$DOCKER_TAG
build:
context: ./api
target: zippy-worker
command: ['/srv/app/docker/cron/start-cron.sh']
networks:
- zippy
depends_on:
- rabbitmq
environment:
- APP_ENV
- DATABASE_URL
- RABBITMQ_USER
- RABBITMQ_PASSWORD
- VERIFY_SSL
rabbitmq:
image: rabbitmq:3.7.14-management
hostname: rabbitmq
networks:
- zippy
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
volumes:
- rabbitmq_vol:/var/lib/rabbitmq
volumes:
rabbitmq_vol:
zippy_vol: