-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (39 loc) · 875 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (39 loc) · 875 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
42
name: hexagon-backend
services:
db:
image: postgres:16-alpine
container_name: postgres-local
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=app_db
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U admin -d app_db" ]
interval: 5s
timeout: 5s
retries: 5
app:
build: .
container_name: app-smoke-test
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
- AWS_REGION=us-east-1
- DB_HOST=db
- DB_PORT=5432
- DB_USER=admin
- DB_PASSWORD=secret
- DB_NAME=app_db
volumes:
postgres_data: