-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 915 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (26 loc) · 915 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
services:
frontend:
build: ./frontend
ports:
- "${MBEDITOR_BIND_HOST:-127.0.0.1}:7073:8080"
restart: unless-stopped
depends_on:
backend:
condition: service_healthy
backend:
build: ./backend
ports:
- "${MBEDITOR_BIND_HOST:-127.0.0.1}:7072:8000"
restart: unless-stopped
environment:
- MAX_UPLOAD_SIZE=52428800
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-http://localhost:7073,http://127.0.0.1:7073}
# Image upload endpoint is deployment-local config; do not hardcode private hosts here.
- LOCAL_IMGBED_UPLOAD_URL=${LOCAL_IMGBED_UPLOAD_URL:-}
- LOCAL_IMGBED_UPLOAD_TOKEN=${LOCAL_IMGBED_UPLOAD_TOKEN:-}
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/v1/version')"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s