-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.prebuilt.yml
More file actions
77 lines (72 loc) · 1.83 KB
/
docker-compose.prebuilt.yml
File metadata and controls
77 lines (72 loc) · 1.83 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Duckling Pre-built Images Docker Compose
# Usage: docker-compose -f docker-compose.prebuilt.yml up -d
#
# This uses pre-built images from Docker Hub (or your registry)
# To use your own registry, set DOCKER_REGISTRY environment variable:
# DOCKER_REGISTRY=ghcr.io/yourusername docker-compose -f docker-compose.prebuilt.yml up -d
services:
backend:
image: ${DOCKER_REGISTRY:-ducklingui}/duckling-backend:${VERSION:-latest}
container_name: duckling-backend
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
ports:
- "5001:5001"
volumes:
- duckling-uploads:/app/uploads
- duckling-outputs:/app/outputs
- duckling-data:/app/data
environment:
- FLASK_ENV=production
- FLASK_DEBUG=false
- DEBUG=False
- SECRET_KEY=${SECRET_KEY:-please-change-this-secret-key}
- FLASK_HOST=0.0.0.0
- FLASK_PORT=5001
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:5001/api/health', timeout=5)",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
networks:
- duckling-network
frontend:
image: ${DOCKER_REGISTRY:-ducklingui}/duckling-frontend:${VERSION:-latest}
container_name: duckling-frontend
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
- /var/cache/nginx
- /var/run
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
- duckling-network
networks:
duckling-network:
driver: bridge
volumes:
duckling-uploads:
duckling-outputs:
duckling-data: