-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
69 lines (69 loc) · 1.48 KB
/
compose.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
unpack:
build:
context: ./unpack
target: production
volumes:
- binary:/mnt/binary:rw
cap_drop:
- ALL
command: sh -c "cp /app/unpack /mnt/binary"
engine:
build:
context: ./engine
target: production
volumes:
- binary:/mnt/binary:ro
- static:/mnt/static:ro
- poetry:/tmp:rw
- ${DVD_DRIVE_FILE}:/mnt/drive.yaml
- ${DVD_CONFIG_DIR}:/mnt/config:ro
- ${DVD_DATA_DIR}:/mnt/data:rw
- ${DVD_LOG_DIR}:/mnt/log:rw
environment:
TZ: ${DVD_TZ:-}
POETRY_CONFIG_DIR: /tmp
POETRY_CACHE_DIR: /tmp
DVD_ENGINE_PORT: "80"
DVD_ENGINE_UNPACK: /mnt/binary/unpack
DVD_ENGINE_DRIVE: /mnt/drive.yaml
DVD_ENGINE_LOG: /mnt/log
DVD_ENGINE_TOKEN: ${DVD_TOKEN}
DVD_ENGINE_UID: ${DVD_UID}
DVD_ENGINE_GID: ${DVD_GID}
expose:
- "80"
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
command: /app/docker/start.sh
viewer:
build:
context: ./viewer
target: production
volumes:
- static:/mnt/static:rw
cap_drop:
- ALL
command: sh -c "cp -R /app/* /mnt/static"
nginx:
image: nginx:stable-bookworm
volumes:
- ./docker/nginx:/etc/nginx/conf.d:ro
- static:/mnt/static:ro
environment:
TZ: ${DVD_TZ:-}
ports:
- "${DVD_HOST}:${DVD_PORT}:80"
cap_drop:
- ALL
cap_add:
- CHOWN
- SETUID
- SETGID
volumes:
binary:
static:
poetry: