mirror of
https://github.com/stashapp/stash-box.git
synced 2026-02-03 18:17:06 -06:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
container_name: postgres
|
|
build: ./postgres
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: <USER>
|
|
POSTGRES_PASSWORD: <PASSWORD>
|
|
POSTGRES_DB: <DATABASE>
|
|
volumes:
|
|
- /pgdata:/var/lib/postgresql/data
|
|
|
|
stash-box:
|
|
container_name: stash-box
|
|
image: stashapp/stash-box:development
|
|
restart: always
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-file: "10"
|
|
max-size: "2m"
|
|
links:
|
|
- postgres
|
|
volumes:
|
|
- <CONFIG_DIR>:/root/.stash-box
|
|
labels:
|
|
- traefik.http.routers.stash-box.rule=Host(`<DOMAIN>`)
|
|
- traefik.http.routers.stash-box.tls=true
|
|
- traefik.http.routers.stash-box.tls.certresolver=stash-box
|
|
- traefik.port=9998
|
|
|
|
traefik:
|
|
container_name: traefik
|
|
image: traefik:2.3
|
|
restart: always
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
command:
|
|
- "--entrypoints.web.address=:80"
|
|
- "--entrypoints.websecure.address=:443"
|
|
- "--entryPoints.web.http.redirections.entryPoint.to=websecure"
|
|
- "--entryPoints.web.http.redirections.entryPoint.scheme=https"
|
|
- "--providers.docker=true"
|
|
- "--certificatesResolvers.stash-box.acme.email=<EMAIL>"
|
|
- "--certificatesResolvers.stash-box.acme.storage=/acme.json"
|
|
- "--certificatesresolvers.stash-box.acme.tlschallenge=true"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /traefik/acme.json:/acme.json
|