version: '3.6'
volumes:
certs:
acme:
html:
sonic:
networks:
proxy:
archivebox:
external: false
onlyoffice:
external: false
services:
nginx-proxy:
image: ${stashapp_proxy_image}
container_name: nginx-proxy
restart: always
ports:
- 80:80
- 443:443
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes:
- certs:/etc/nginx/certs:ro
- ./vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy
letsencrypt-companion:
image: ${stashapp_acme_image}
container_name: acme-companion
restart: always
volumes:
- certs:/etc/nginx/certs
- acme:/etc/acme.sh
- ./vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy
depends_on:
- nginx-proxy
trilium:
image: ${stashapp_trilium_image}
container_name: trilium
restart: always
environment:
- USER_UID=1000
- USER_GID=1000
- VIRTUAL_PORT=8080
- VIRTUAL_HOST=${stashapp_notes_domain},www.${stashapp_notes_domain}
- LETSENCRYPT_HOST=${stashapp_notes_domain},www.${stashapp_notes_domain}
- TRILIUM_DATA_DIR=/home/node/data
volumes:
- ./.data/trilium:/home/node/data
networks:
- proxy
filestash:
image: ${stashapp_filestash_image}
container_name: filestash
restart: always
environment:
- VIRTUAL_PORT=8334
- VIRTUAL_HOST=${stashapp_filestash_domain}
- LETSENCRYPT_HOST=${stashapp_filestash_domain}
- APPLICATION_URL=${stashapp_filestash_domain}
- ONLYOFFICE_URL=http://onlyoffice
volumes:
- ./.data/filestash:/app/data
networks:
- proxy
- onlyoffice
onlyoffice:
image: ${stashapp_onlyoffice_image}
container_name: onlyoffice
restart: always
networks:
- onlyoffice
security_opt:
- seccomp:unconfined
archivebox:
image: ${stashapp_archivebox_image}
container_name: archivebox
command: server --quick-init 0.0.0.0:8000
environment:
- PUID=1000
- PGID=1000
- VIRTUAL_PORT=8000
- VIRTUAL_HOST=${stashapp_archivebox_domain}
- LETSENCRYPT_HOST=${stashapp_archivebox_domain}
- MEDIA_MAX_SIZE=750m
- SEARCH_BACKEND_ENGINE=sonic
- SEARCH_BACKEND_HOST_NAME=sonic
- SEARCH_BACKEND_PASSWORD=${stashapp_sonic_pw}
volumes:
- ./.data/archivebox:/data
networks:
- proxy
- archivebox
sonic:
image: ${stashapp_sonic_image}
container_name: sonic
expose:
- 1491
environment:
- SEARCH_BACKEND_PASSWORD=${stashapp_sonic_pw}
volumes:
- ./sonic.cfg:/etc/sonic.cfg:ro
- sonic:/var/lib/sonic/store
networks:
- archivebox