-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yaml
105 lines (97 loc) · 2.34 KB
/
docker-compose.prod.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3.4'
volumes:
postgres-data:
services:
frontend-usagers-built:
build:
context: packages/frontend-usagers
dockerfile: Dockerfile
working_dir: /app
volumes:
- $PWD/packages/frontend-usagers:/app:delegated
- $HOME/.ssh:/home/node/.ssh:ro
- $HOME/.gitconfig:/home/node/.gitconfig:ro
- $HOME/.npm:/home/node/.npm:delegated
env_file:
- ./.env
environment:
TZ: Europe/Paris
DEBUG: info:vao*
ports:
- 8080:8080
frontend-bo-built:
build:
context: packages/frontend-bo
dockerfile: Dockerfile
working_dir: /app
volumes:
- $PWD/packages/frontend-bo:/app:delegated
- $HOME/.ssh:/home/node/.ssh:ro
- $HOME/.gitconfig:/home/node/.gitconfig:ro
- $HOME/.npm:/home/node/.npm:delegated
env_file:
- ./.env
environment:
DEBUG: info:vao*
ports:
- 8081:8080
migrations-built:
build:
context: packages/migrations
dockerfile: Dockerfile
working_dir: /app
volumes:
- $PWD/packages/migrations:/app:delegated
- $HOME/.ssh:/home/node/.ssh:ro
- $HOME/.gitconfig:/home/node/.gitconfig:ro
- $HOME/.npm:/home/node/.npm:delegated
depends_on:
- postgres
env_file:
- ./.env
environment:
DEBUG: "*info*"
backend-built:
build:
context: packages/backend
dockerfile: Dockerfile
working_dir: /app
volumes:
- $PWD/packages/backend:/app:delegated
- $HOME/.ssh:/home/node/.ssh:ro
- $HOME/.gitconfig:/home/node/.gitconfig:ro
- $HOME/.npm:/home/node/.npm:delegated
depends_on:
postgres:
condition: service_started
migrations-built:
condition: service_completed_successfully
env_file:
- ./.env
environment:
DEBUG: info:vao*
ports:
- 3010:3000
postgres:
image: postgres:15.1
restart: always
env_file:
- ./.env
environment:
- NODE_ENV=development
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- ./pg/lancement.sh:/docker-entrypoint-initdb.d/lancement.sh
- ./pg/scripts:/scripts
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
maildev:
image: maildev/maildev:2.1.0
ports:
- '1080:1080'
- '1025:1025'