-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (70 loc) · 2.34 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (70 loc) · 2.34 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-pilot}
POSTGRES_USER: ${POSTGRES_USER:-pilot}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pilot-local-password}
volumes:
- pilot_postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-pilot} -d ${POSTGRES_DB:-pilot}"]
interval: 5s
timeout: 3s
retries: 20
mail:
image: axllent/mailpit:v1.27
restart: unless-stopped
ports:
- "127.0.0.1:8025:8025"
backend:
build: ./backend
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
APP_ENV: ${APP_ENV:-development}
DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-pilot}:${POSTGRES_PASSWORD:-pilot-local-password}@db:5432/${POSTGRES_DB:-pilot}
FRONTEND_ORIGIN: ${FRONTEND_ORIGIN:-http://localhost:3000}
ADMIN_USERNAME: ${ADMIN_USERNAME:-pilot}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-change-me-locally}
SESSION_SECRET: ${SESSION_SECRET:-replace-with-a-random-string-at-least-32-characters}
SESSION_HOURS: ${SESSION_HOURS:-12}
COOKIE_SECURE: ${COOKIE_SECURE:-false}
ORDER_NOTIFICATION_EMAIL: ${ORDER_NOTIFICATION_EMAIL:-orders@example.com}
SMTP_HOST: ${SMTP_HOST:-mail}
SMTP_PORT: ${SMTP_PORT:-1025}
SMTP_STARTTLS: ${SMTP_STARTTLS:-false}
SMTP_USERNAME: ${SMTP_USERNAME:-}
SMTP_PASSWORD: ${SMTP_PASSWORD:-}
SMTP_FROM: ${SMTP_FROM:-site@pilot.local}
CATALOG_PROVIDER: ${CATALOG_PROVIDER:-mock}
INFO_ENTERPRISE_BRIDGE_URL: ${INFO_ENTERPRISE_BRIDGE_URL:-}
INFO_ENTERPRISE_TOKEN: ${INFO_ENTERPRISE_TOKEN:-}
UPLOAD_DIR: /data/uploads
MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-5000000}
volumes:
- pilot_uploads:/data/uploads
ports:
- "127.0.0.1:8000:8000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 5s
timeout: 3s
retries: 20
frontend:
build:
context: .
args:
BACKEND_INTERNAL_URL: http://backend:8000
restart: unless-stopped
depends_on:
backend:
condition: service_healthy
ports:
- "127.0.0.1:3000:3000"
volumes:
pilot_postgres:
pilot_uploads: