-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
executable file
·65 lines (62 loc) · 1.92 KB
/
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
services:
voyager:
build: "./"
container_name: voyager
restart: unless-stopped
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./Logs/:/app/Logs/"
- "./.env:/app/.env"
labels:
- "traefik.enable=true"
- "traefik.http.routers.voyager.entrypoints=web-secure"
- "traefik.http.routers.voyager.rule=Host(`voyager-api.lunarlabs.cc`)"
- "traefik.http.routers.voyager.service=voyager"
- "traefik.http.services.voyager.loadbalancer.server.port=8765"
depends_on:
- mongo
- traefik
networks:
- traefik-net
- voyager-net
mongo:
image: mongo:7-jammy
restart: unless-stopped
container_name: voyager-mongo
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/var/opt/lunarlabs/voyager/mongo-data:/data/db"
env_file:
- path: ./Mongo/.env
required: true
networks:
- voyager-net
traefik:
image: "traefik:latest"
container_name: traefik
restart: unless-stopped
security_opt:
- "no-new-privileges:true"
ports:
- "80:80"
- "443:443"
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./Traefik/traefik.yml:/traefik.yml:ro"
- "./Traefik/acme.json:/acme.json"
- "./Traefik/Logs:/var/log/traefik"
labels:
- traefik.enable=true
- traefik.docker.network=traefik-net
env_file:
- path: ./Traefik/.env
required: true
networks:
- traefik-net
networks:
traefik-net:
name: "traefik-net"
voyager-net:
name: "voyager-net"