-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
36 lines (32 loc) · 864 Bytes
/
Copy pathdocker-compose.prod.yml
File metadata and controls
36 lines (32 loc) · 864 Bytes
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
# Legate Agent — production overlay.
# Usage: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
# Adds a Caddy reverse proxy for TLS and removes dev-only bind mounts / reload.
services:
api:
command: gunicorn legate.main:app -k uvicorn.workers.UvicornWorker -w 4 -b 0.0.0.0:8000
volumes: []
restart: unless-stopped
worker:
command: celery -A legate.workers.celery_app worker --loglevel=warning
volumes: []
restart: unless-stopped
web:
command: npm run start
volumes: []
restart: unless-stopped
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./deploy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- api
- web
restart: unless-stopped
volumes:
caddy_data:
caddy_config: