-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 915 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
version: '3.7'
services:
app:
image: 127.0.0.1:5000/together
volumes:
- /mnt/web/together/app:/app
networks:
- proxy-all
- together
environment:
- VIRTUAL_HOST=together.sryther.fr
- VIRTUAL_PORT=8000
- LETSENCRYPT_HOST=together.sryther.fr
- LETSENCRYPT_EMAIL=paul.rey@sryther.fr
deploy:
labels:
- "traefik.enable=true"
- "traefik.port=8000"
- "traefik.domain=together.sryther.fr"
endpoint_mode: dnsrr
placement:
constraints:
- node.hostname == riv-3
db:
image: mvertes/alpine-mongo
networks:
- together
volumes:
- /mnt/web/together/data/db:/data/db
deploy
labels:
- "traefik.enable=false"
endpoint_mode: dnsrr
placement:
constraints:
- node.hostname == riv-3
networks:
proxy-all:
external: true
together: