-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
30 lines (30 loc) · 1.06 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
services:
rectify:
build: .
container_name: rectify
#ports:
# - "8000:8000" #uncomment for public access or local dev
environment:
# Expects a reverse proxy (Nginx, Traefik, HAProxy, etc.) to handle HTTPS
# and inject X-Forwarded-* headers (X-Forwarded-For, X-Forwarded-Proto, etc.)
- APP_ENV=production # Set to development for local dev
#- SECRET_KEY=${SECRET_KEY:-change-me-in-production} # Set up your own secret key for production. Random is generated at build time if not provided.
volumes:
- type: tmpfs
target: /tmp
tmpfs:
size: 64M
- type: tmpfs
target: /app/uploads
tmpfs:
size: 512M
read_only: true
security_opt:
- no-new-privileges:true
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; req = urllib.request.Request('http://localhost:8000/', headers={'X-Forwarded-Proto': 'https'}); urllib.request.urlopen(req)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s