forked from betagouv/preuve-covoiturage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
83 lines (74 loc) · 1.83 KB
/
docker-compose.dev.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
version: '3.5'
services:
postgres:
ports:
- 5432:5432
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
POSTGRES_DB: 'local'
PGDATA: '/var/lib/postgresql/data/pgdata'
volumes:
- ${PWD}/db/postgres:/var/lib/postgresql/data/pgdata
redis:
ports:
- 6379:6379
mailer:
ports:
- 8025:8025
arena:
build:
dockerfile: ./Dockerfile
context: ./docker/arena
ports:
- 4567:4567
environment:
REDIS_HOST: 'redis'
REDIS_PASSWORD: ''
REDIS_PORT: '6379'
APP_QUEUE: 'trip;acquisition;policy;carpool;normalization;campaign'
networks:
- back
dashboard:
build:
dockerfile: ./docker/dashboard/Dockerfile
context: .
volumes:
- ${PWD}/dashboard:/app/dashboard
- ${PWD}/docker/dashboard/ci.env.js:/app/dashboard/src/assets/env.js:ro
- ${PWD}/shared:/app/shared:ro
tty: true
labels:
- 'traefik.http.services.dashboard.loadbalancer.server.port=4200'
api:
build:
dockerfile: ./docker/api/Dockerfile
context: .
environment:
PORT: 8080
APP_RATE_LIMIT_MAX_FACTOR: '0'
DEBUG: 'api'
APP_POSTGRES_URL: postgres://postgres:postgres@postgres:5432/local
volumes:
- ${PWD}/api:/app/api
- ${PWD}/shared:/app/shared:ro
command: 'sh -c "pm2-runtime start pm2-api.json | pino-pretty"'
tty: true
worker:
build:
dockerfile: ./docker/api/Dockerfile
context: .
volumes:
- ${PWD}/api:/app/api
- ${PWD}/shared:/app/shared:ro
command: 'sh -c "pm2-runtime start pm2-worker.json | pino-pretty"'
tty: true
environment:
DEBUG: 'worker'
APP_POSTGRES_URL: postgres://postgres:postgres@postgres:5432/local
s3:
ports:
- 9000:9000
networks:
front:
back: