2023-06-10 14:46:05 +00:00
|
|
|
version: "2"
|
2023-05-08 18:38:05 +00:00
|
|
|
services:
|
|
|
|
filestash:
|
|
|
|
container_name: filestash
|
2023-08-28 01:42:54 +00:00
|
|
|
image: machines/filestash:latest
|
2023-05-08 18:38:05 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2023-06-10 14:46:05 +00:00
|
|
|
- APPLICATION_URL=${APP_DOMAIN}
|
|
|
|
- GDRIVE_CLIENT_ID=${FILESTASH_GDRIVE_CLIENT_ID}
|
|
|
|
- GDRIVE_CLIENT_SECRET=${FILESTASH_GDRIVE_CLIENT_SECRET}
|
|
|
|
- DROPBOX_CLIENT_ID=${FILESTASH_DROPBOX_CLIENT_ID}
|
|
|
|
- ONLYOFFICE_URL=http://filestash-onlyoffice
|
2023-05-08 18:38:05 +00:00
|
|
|
ports:
|
2023-06-10 14:46:05 +00:00
|
|
|
- ${APP_PORT}:8334
|
2024-02-02 07:56:39 +00:00
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data:/app/data/state/
|
2023-05-08 18:38:05 +00:00
|
|
|
depends_on:
|
|
|
|
- filestash-onlyoffice
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
labels:
|
2023-06-10 14:46:05 +00:00
|
|
|
# Main
|
|
|
|
traefik.enable: true
|
|
|
|
traefik.http.middlewares.filestash-web-redirect.redirectscheme.scheme: https
|
|
|
|
traefik.http.services.filestash.loadbalancer.server.port: 8334
|
|
|
|
# Web
|
|
|
|
traefik.http.routers.filestash-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.filestash-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.filestash-insecure.service: filestash
|
|
|
|
traefik.http.routers.filestash-insecure.middlewares: filestash-web-redirect
|
|
|
|
# Websecure
|
2023-05-08 18:38:05 +00:00
|
|
|
traefik.http.routers.filestash.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.filestash.entrypoints: websecure
|
|
|
|
traefik.http.routers.filestash.service: filestash
|
|
|
|
traefik.http.routers.filestash.tls.certresolver: myresolver
|
2023-06-10 14:46:05 +00:00
|
|
|
# Local domain
|
|
|
|
traefik.http.routers.filestash-local-insecure.rule: Host(`filestash.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.filestash-local-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.filestash-local-insecure.service: filestash
|
|
|
|
traefik.http.routers.filestash-local-insecure.middlewares: filestash-web-redirect
|
|
|
|
# Local domain secure
|
|
|
|
traefik.http.routers.filestash-local.rule: Host(`filestash.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.filestash-local.entrypoints: websecure
|
|
|
|
traefik.http.routers.filestash-local.service: filestash
|
|
|
|
traefik.http.routers.filestash-local.tls: true
|
2023-05-08 18:38:05 +00:00
|
|
|
|
|
|
|
filestash-onlyoffice:
|
|
|
|
container_name: filestash_oods
|
|
|
|
image: onlyoffice/documentserver:7.3.3.50
|
|
|
|
restart: unless-stopped
|
|
|
|
security_opt:
|
|
|
|
- seccomp:unconfined
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|