-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.03 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
# Milestone - Production Docker Compose
#
# This runs the FastAPI backend which serves both API and React frontend.
# The React frontend is pre-built and deployed to the public/ folder.
#
# Usage:
# docker compose up -d
#
# Access: http://your-server:8485/
services:
milestone:
build:
context: .
dockerfile: Dockerfile
container_name: milestone
restart: unless-stopped
ports:
- "8485:8485"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
environment:
- PORT=8485
- TZ=Europe/Zurich
volumes:
- /mnt/user/appdata/milestone/uploads:/app/uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8485/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
memory: 1g
reservations:
memory: 256m
networks:
- milestone-net
- guac-net
networks:
milestone-net:
driver: bridge
guac-net:
external: true