-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.9'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: qubicflow-backend:latest
container_name: qubicflow-backend
ports:
- "127.0.0.1:8000:8000"
volumes:
- qubicflow-data:/app/data
user: "1000:1000"
env_file:
- path: ./backend/.env
required: false
environment:
# Zeitzone der Excel-Exporte (Datumsspalten), z. B. TZ=Europe/Berlin.
# Setzen über Shell-Env oder eine .env neben dieser Datei.
- TZ=${TZ:-UTC}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
image: qubicflow-frontend:latest
container_name: qubicflow-frontend
ports:
- "127.0.0.1:8080:80"
depends_on:
- backend
restart: unless-stopped
restarter:
image: docker:cli
container_name: qubicflow-restarter
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: sh -c 'echo "0 3 * * * docker restart qubicflow-backend" | crontab - && crond -f -l 8'
restart: unless-stopped
depends_on:
- backend
volumes:
qubicflow-data:
driver: local