forked from MTES-MCT/dossierfacile-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
41 lines (39 loc) · 943 Bytes
/
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
services:
nginx:
image: nginx:latest
container_name: dossierfacile_reverse_proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./.nginx/nginx.conf:/etc/nginx/nginx.conf
- ./.nginx/certs:/etc/nginx/certs
restart: unless-stopped
networks:
- dossierfacile_network
postgres:
image: postgres:12
container_name: dossierfacile_postgres_db
hostname: localhost
environment:
POSTGRES_USER: dossierfacile
POSTGRES_PASSWORD: your_very_secure_password
POSTGRES_DB: dossierfacile
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dossierfacile"]
interval: 10s
timeout: 5s
retries: 5
networks:
- dossierfacile_network
volumes:
postgres_data:
driver: local
networks:
dossierfacile_network:
driver: bridge