forked from PnX-SI/GeoNature-citizen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (39 loc) · 871 Bytes
/
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
version: "3.4"
services:
frontend:
container_name: citizen-front
depends_on:
- backend
networks:
- citizen-kane
backend:
container_name: citizen-back
depends_on:
- db
networks:
- citizen-kane
db:
container_name: citizen-db
image: postgis/postgis:14-master
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_DB=${DB_NAME-dbname}
- POSTGRES_USER=${DB_USER-dbuser}
- POSTGRES_PASSWORD=${DB_PASSWORD-dbpwd}
volumes:
- citizen_data:/var/lib/postgresql/data/pgdata
networks:
- citizen-kane
nginx:
container_name: citizen-nginx
depends_on:
- frontend
volumes:
- ./config/backoffice_htpasswd:/etc/nginx/conf/.htpasswd
networks:
- citizen-kane
networks:
citizen-kane:
external: false
volumes:
citizen_data: