-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.23 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
services:
app:
build: .
container_name: ${BACKEND_CONTAINER_NAME:-app}
ports:
- "${HOST_PORT:-80}:8000"
environment:
- NICEGUI_STORAGE_SECRET=${NICEGUI_STORAGE_SECRET:-STORAGE_SECRET}
- NICEGUI_PORT=8000
- APP_DATABASE_URL=${APP_DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/postgres}
- DATABRICKS_HOST=${DATABRICKS_HOST}
- DATABRICKS_TOKEN=${DATABRICKS_TOKEN}
command: ${APP_COMMAND:-}
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
postgres:
container_name: ${POSTGRES_CONTAINER_NAME:-postgres}
image: postgres:17-alpine3.21
hostname: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- default
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 1s
timeout: 20s
retries: 5
volumes:
postgres_data:
networks:
default:
name: ${NETWORK_NAME:-app_network}
driver: bridge