-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (62 loc) · 1.51 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
volumes:
dbdata:
driver: local
networks:
tito-net:
driver: bridge
services:
# Traefik
reverse-proxy:
hostname: traefik-tito
container_name: traefik-tito
image: traefik:v2.10.7 # The official v2 Traefik docker image
networks:
- tito-net
# Enables the web UI and tells Traefik to listen to docker
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
# -
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
# - /volume1/nasflix/appdata/tito/data_traefik:/etc/traefik
restart: unless-stopped
tito-api:
image: dynamikarray/tito:latest
restart: unless-stopped
build: .
#ports:
# - "7847:7847"
networks:
- tito-net
links:
- mongo
depends_on:
- reverse-proxy
- mongo
labels:
- "traefik.enable=true"
- "traefik.http.routers.tito.rule=Host(`tito.home`)"
- "traefik.port=7847"
## MONDO DB ##
mongo:
container_name: mongo-tito
restart: unless-stopped
image: mongo
volumes:
- "./dbdata:/data/db"
ports:
- "27017:27017"
networks:
- tito-net
depends_on:
- reverse-proxy