forked from IGNF/apicarto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (37 loc) · 822 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (37 loc) · 822 Bytes
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
version: "3"
services:
api:
build:
context: .
args:
- http_proxy
- https_proxy
- HTTP_PROXY
- HTTPS_PROXY
networks:
- apicarto
environment:
- PGPASSWORD=${POSTGRES_PASSWORD}
ports:
# pour http://localhost:8091/api/doc si traefik non installé
- "8091:8091"
depends_on:
- db
labels:
- "traefik.enable=true"
- "traefik.http.routers.apicarto.rule=Host(`apicarto.${HOST_HOSTNAME}`)"
restart: unless-stopped
db:
container_name: apicarto-db
image: postgis/postgis:13-3.2-alpine
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- apicarto
volumes:
- db-data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
db-data:
networks:
apicarto: