-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·88 lines (76 loc) · 1.82 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.7"
# secrets: # should be owned by movim user:group (9000:9000)
# db_password:
# file: /path/to/db_password
services:
movim:
### general settings
image: ghcr.io/sando38/movim:latest
#build:
# context: image/.
# dockerfile: Dockerfile.debian
hostname: movim
container_name: movim
restart: unless-stopped
depends_on:
- postgresql
user: 9000:9000
### security options
read_only: true
cap_drop: [ALL]
security_opt:
- no-new-privileges:true
### Environment variables
# environment:
# - DAEMON_URL="localhost"
# - DB_PASSWORD__FILE=/run/secrets/db_password
env_file:
- movim.env
# secrets:
# - db_password
### Volume mounts
volumes:
- movim:/movim
postgresql:
### general settings
image: postgres:15-alpine
hostname: postgresql
container_name: postgresql
env_file:
- movim.env
volumes:
- database:/var/lib/postgresql/data:rw
nginx:
### general settings
image: nginx:mainline-alpine
hostname: nginx
container_name: nginx
restart: unless-stopped
depends_on:
- movim
user: 101:101
### security options
read_only: true
cap_drop: [ALL]
security_opt:
- no-new-privileges:true
### networking options
ports:
- 80:80
# - 443:443
### Volume mounts
volumes:
- movim:/movim:ro
- ${PWD}/appdata/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
- ${PWD}/appdata/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
### certs must be readable by the default nginx user 101:101
# - /path/to/certs:/etc/nginx/tls
### TempFS to enable read-only mode
tmpfs:
- /nginx/tmp
- /nginx/cache
- /nginx/logs
- /nginx/run
volumes:
database:
movim: