-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1.01 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
version: "3.3"
services:
map:
build: .
image: "attribdd/foxhole-map-annotate:master"
restart: always
volumes:
- ./public/map:/app/public/map
- ./sessions:/app/sessions
- ./data:/app/data
environment:
SECRET: sessionStorageSecret
ports:
- "3000:3000"
expose:
- 3000
# optional, better performance for production to handle static files and remove some load from the map server
caddy:
build:
context: .
dockerfile: Dockerfile
target: caddy
image: "attribdd/foxhole-map-annotate:master-caddy"
profiles:
- caddy
restart: always
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./public/map:/srv/map
- ./data/caddy/data:/data
- ./data/caddy/config:/config
ports:
- "8000:80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.map.rule=Host(`warden.express`)"
- "traefik.http.routers.map.entrypoints=websecure"
- "traefik.http.routers.map.tls.certresolver=le"