-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (39 loc) · 1.15 KB
/
compose.yaml
File metadata and controls
39 lines (39 loc) · 1.15 KB
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
services:
app:
build:
context: .
dockerfile: infra/docker/app.Dockerfile
environment:
DJANGO_SETTINGS_MODULE: mylonite.settings
MYLONITE_CONFIG_ROOT: /config
MYLONITE_DATA_ROOT: /data
MYLONITE_DB_PATH: /data/db/mylonite.sqlite3
MYLONITE_CONTENT_ROOT: /content
MYLONITE_THEMES_ROOT: /themes
volumes:
- type: bind
source: ${MYLONITE_CONFIG_DIR:-./runtime/config}
target: /config
- type: bind
source: ${MYLONITE_DATA_DIR:-./runtime/data}
target: /data
- type: bind
source: ${MYLONITE_CONTENT_DIR:-./content}
target: /content
- type: bind
source: ${MYLONITE_THEMES_DIR:-./themes}
target: /themes
user: "${MYLONITE_PUID:-1000}:${MYLONITE_PGID:-1000}"
restart: unless-stopped
init: true
read_only: true
tmpfs:
- /tmp:size=64m,mode=1777
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health/', timeout=3)"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s