-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
50 lines (47 loc) · 1.41 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
50 lines (47 loc) · 1.41 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
42
43
44
45
46
47
48
49
50
services:
postgres:
image: postgres:16-alpine
container_name: deutschmachine-postgres
environment:
POSTGRES_DB: deutschmachine_db
POSTGRES_USER: deutschmachine
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U deutschmachine -d deutschmachine_db"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
web:
build:
context: .
dockerfile: Dockerfile
container_name: deutschmachine-web
ports:
- "8001:8001"
environment:
DATABASE_URL: postgresql://deutschmachine:${POSTGRES_PASSWORD}@postgres:5432/deutschmachine_db
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY}
DEBUG: "False"
ALLOWED_HOSTS: localhost,127.0.0.1,learn.fincaradar.com,deutschmachine.fincaradar.com
CSRF_TRUSTED_ORIGINS: https://learn.fincaradar.com,https://deutschmachine.fincaradar.com
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
SECURE_SSL_REDIRECT: "False"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
cloudflared:
image: cloudflare/cloudflared:latest
container_name: deutschmachine-tunnel
command: tunnel run
environment:
TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN}
depends_on:
- web
restart: unless-stopped
volumes:
postgres_data:
driver: local