-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.fullstack.yml
More file actions
41 lines (39 loc) · 905 Bytes
/
compose.fullstack.yml
File metadata and controls
41 lines (39 loc) · 905 Bytes
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
services:
db:
image: postgres:18-alpine
environment:
POSTGRES_DB: hackathon_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
valkey:
image: valkey/valkey:8-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
app:
image: ghcr.io/pipeliedev/pe-hackathon:latest
ports:
- "5000:5000"
environment:
DATABASE_NAME: hackathon_db
DATABASE_HOST: db
DATABASE_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
REDIS_URL: redis://valkey:6379/0
depends_on:
db:
condition: service_healthy
valkey:
condition: service_healthy