-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (32 loc) · 1.09 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
services:
backend:
image: handwrite-backend:latest
build:
context: .
dockerfile: Dockerfile.backend
container_name: handwrite-backend
restart: unless-stopped
ports:
- "${BACKEND_PORT:-8443}:8443"
environment:
BACKEND_HOST: 0.0.0.0
BACKEND_PORT: 8443
SESSION_SECRET_KEY: ${SESSION_SECRET_KEY:?SESSION_SECRET_KEY must be set in .env}
CORS_ORIGINS: ${CORS_ORIGINS:?CORS_ORIGINS must be set in .env}
BACKEND_DOMAIN: ${BACKEND_DOMAIN:-}
LETSENCRYPT_DOMAIN: ${LETSENCRYPT_DOMAIN:-}
LETSENCRYPT_DIR: ${LETSENCRYPT_DIR:-/app/certs/letsencrypt}
LOCAL_CERT_DIR: ${LOCAL_CERT_DIR:-/app/certs/local}
BACKEND_SSL_CERT_FILE: ${BACKEND_SSL_CERT_FILE:-}
BACKEND_SSL_KEY_FILE: ${BACKEND_SSL_KEY_FILE:-}
BACKEND_LOG_LEVEL: ${BACKEND_LOG_LEVEL:-INFO}
volumes:
- ./certs:/app/certs:ro
- ./backend/static/uploads:/app/backend/static/uploads
- ./backend/static/output:/app/backend/static/output
- ./backend/logs:/app/backend/logs
networks:
- handwrite
networks:
handwrite:
driver: bridge