-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
40 lines (36 loc) · 956 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
version: "3.7"
services:
titra:
container_name: titra
image: kromit/titra
restart: unless-stopped
depends_on:
- titra-db
networks:
- traefik-network
- default
environment:
- ROOT_URL=https://timetrack.${DOMAIN}
- MONGO_URL=mongodb://titra-db/titra
- PORT=3000
labels:
- traefik.enable=true
- traefik.http.routers.titra.entrypoints=websecure
- traefik.http.routers.titra.rule=Host(`timetrack.${DOMAIN}`)
- traefik.http.services.titra.loadBalancer.server.port=3000
- traefik.http.routers.titra.middlewares=basic
- traefik.http.routers.titra.tls=true
- traefik.http.routers.titra.tls.certresolver=cfdns
titra-db:
container_name: titra-db
image: mongo:4.0
restart: unless-stopped
networks:
- default
volumes:
- ${TITRA_DB_DATA}:/data/db
networks:
traefik-network:
external: true
default:
driver: bridge