blob: ed52aa93eb8f495007651745e5e0432e735e39ec (
plain) (
blame)
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
|
services:
app:
build: .
expose:
- 5000
ports:
- "127.0.0.1:5000:5000"
environment:
- SECRET_KEY=${SECRET_KEY:-dev-secret-key}
- DATABASE_URL=postgresql://slotfinder:slotfinder@postgres/slotfinder
- OIDC_CLIENT_ID=slotfinder
- OIDC_CLIENT_SECRET=slotfinder-dev-secret
- OIDC_DISCOVERY_URL=${OIDC_DISCOVERY_URL:-http://localhost:8080/realms/master/.well-known/openid-configuration}
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
expose:
- 5432
ports:
- "127.0.0.1:5432:5432"
environment:
POSTGRES_USER: slotfinder
POSTGRES_PASSWORD: slotfinder
POSTGRES_DB: slotfinder
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U slotfinder"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
|