forked from betagouv/sante-psy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 1.2 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
version: '3'
services:
db:
image: postgres:12.5
environment:
POSTGRES_USER: santepsy
POSTGRES_PASSWORD: santepsy
ports:
- "5432:5432"
maildev:
image: maildev/maildev
environment:
MAILDEV_INCOMING_USER: mailuser
MAILDEV_INCOMING_PASS: mailpassword
ports:
- "1080:80"
- "1025:25"
web:
build: .
command: bash -c "sleep 3; npm run migrate ; npm run seed && nodemon --inspect=0.0.0.0:9229 ./index.js"
env_file:
- .env
environment:
DATABASE_URL: postgres://santepsy:santepsy@db:5432/santepsy
SECURE: "false"
ANNOUNCEMENT: "(Docker-compose variable) Pour déclarer vos séances, veuillez indiquer l'état de votre conventionnement ainsi que votre université de référence."
SECRET_LOGS: "production_value_should_be_set_in_.env"
SECRET: "production_value_should_be_set_in_.env"
ports:
- "8080:8080"
- "9229:9229"
volumes:
- .:/app
depends_on: # https://docs.docker.com/compose/startup-order/
- db
restart: # https://docs.docker.com/compose/compose-file/compose-file-v3/#restart
always # trick to be sure our app is always up, even when it has started before PG