-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.41 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
# Use postgres/example user/password credentials
version: "3.1"
services:
reverse-proxy:
image: traefik:1.7 # The official Traefik docker image
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "8081:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
backend:
image: dmsc/duo-backend
environment:
DATABASE_URL: postgres://duouser:duopassword@db:5432/duo
secret: qMyLZALzs229ybdQXNyzYRdju7X784TH
tokenLife: 7d
baseURL: localhost:3000
SPARKPOST_TOKEN: dummytoken
labels:
- "traefik.frontend.rule=PathPrefix:/api, /graphql, /downloads, /files, /proposal, /uploads"
- "traefik.port=4000"
frontend:
image: dmsc/duo-frontend
labels:
- "traefik.frontend.rule=PathPrefix:/"
- "traefik.port=80"
duo-cron-job:
image: dmsc/duo-cron-job
db:
image: postgres:11.2
restart: always
environment:
POSTGRES_PASSWORD: duopassword
POSTGRES_USER: duouser
POSTGRES_DB: duo
ports:
- 5432:5432
volumes:
- ./db_patches/:/docker-entrypoint-initdb.d/
rabbitmq:
image: "rabbitmq:3-management"
hostname: "rabbit"
ports:
- "15672:15672"
- "5672:5672"
labels:
NAME: "rabbitmq"
volumes:
- ./rabbitmq-isolated.conf:/etc/rabbitmq/rabbitmq.config