-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.stack.yml
More file actions
64 lines (56 loc) · 1.96 KB
/
Copy pathdocker-compose.stack.yml
File metadata and controls
64 lines (56 loc) · 1.96 KB
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
version: "3.8"
#####
# ⭐️ This file is not independent :
## 🟢 Docker-compose DEV mode, starts with
# $ docker-compose -f docker-compose.common.yml -f docker-compose.dev.yml [build|up -d|down]
# OR
# $ docker-compose docker-compose.common.yml -f docker-compose.dev.yml config > docker-compose.yml
# $ docker-compose [build|up -d|down]
## 🟢 Docker-compose STACK mode, starts with
# $ docker login <registry_url>
# $ docker-compose -f docker-compose.common.yml -f docker-compose.stack.yml config > docker-stack.yml
# $ docker stack deploy parcellaire -c docker-stack.yml --with-registry-auth
#####
# 🪧 Some information on this file :
# See : https://docs.docker.com/compose/compose-file/compose-file-v3/
services:
topo-importer:
volumes:
#- importer-data:/tmp
- /data/topo/importer:/tmp
networks:
- traefik-public
command: /bin/bash /scripts/keepalive.sh
topo-postgis:
# Ouverture de port pour test si nécessaire
#ports:
# - "${POSTGRES_PORT}:${POSTGRES_PORT}"
networks:
- traefik-public
volumes:
#- topo-postgis-data:/var/lib/postgresql/data
# 🚨 Please change the owner of /data/topo/postgresql to 999:999 first.
- /data/topo/postgresql:/var/lib/postgresql/data
topo-api:
#ports:
# - "${API_PORT}:${API_PORT}"
networks:
- traefik-public
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "traefik.http.routers.topo.rule=Host(`${STACK_FRONTEND_DNS}`)"
- "traefik.http.routers.topo.entrypoints=websecure"
- "traefik.http.services.topo.loadbalancer.server.port=${API_PORT}"
- "traefik.http.routers.topo.tls.certresolver=le"
# Uncomment this if you want to use volume instead of binded directories.
#volumes:
# topo-postgis-data:
# name: topo-postgis-data
# topo-importer-data:
# name: topo-importer-data
networks:
traefik-public:
external: true
name: traefik-public