-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.23 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
services:
# Pizza Microservices - All-in-One Container with React Frontend
# Runs all microservices and webapp with React frontend in a single container
pizza-app:
build:
context: .
dockerfile: Dockerfile
image: confluent-pizza:latest
container_name: pizza-app
command:
- sh
- -c
- |
python3 msvc_status.py confluent_cloud.ini webapp.ini &
python3 msvc_assemble.py confluent_cloud.ini webapp.ini &
python3 msvc_bake.py confluent_cloud.ini webapp.ini &
python3 msvc_delivery.py confluent_cloud.ini webapp.ini &
exec gunicorn 'webapp:main("confluent_cloud.ini", "webapp.ini")' --bind 0.0.0.0:8000 --workers 2 --timeout 120
ports:
- "8000:8000"
volumes:
- ./app/logs:/app/logs
- ./app/pid:/app/pid
- ./app/utils:/app/utils:ro
- ./app/config:/app/config:ro
- ./app/schemas:/app/schemas:ro
- ./app/static:/app/static:ro
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
networks:
- pizza-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health-check"]
interval: 30s
timeout: 10s
retries: 3
networks:
pizza-network:
driver: bridge