-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
filestash.yml
32 lines (29 loc) · 980 Bytes
/
filestash.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
# DOMAIN=example.com docker stack deploy -c filestash.yml filestash
# chown -R 1000:1000 data
services:
app:
image: machines/filestash:${VERSION:-latest}
environment:
- APPLICATION_URL=${SCHEME:-https}://${DOMAIN:-filestash.localhost}
volumes:
- ${VOLUME_PATH}data:/app/data/state/
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.filestash-${NUMBER:-1}.rule=Host(`${DOMAIN:-filestash.localhost}`)
- traefik.http.routers.filestash-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.filestash-${NUMBER:-1}.service=filestash-${NUMBER:-1}
- traefik.http.routers.filestash-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.filestash-${NUMBER:-1}.loadbalancer.server.port=8334
networks:
- internal
- traefik
volumes:
data:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net