forked from stashapp/stash-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.44 KB
/
docker-compose.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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