-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 904 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 904 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
services:
aspnet_app:
build:
context: ./backend
dockerfile: Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:5171
ConnectionStrings__DbConnection: "Host=postgres_db;Port=5432;Database=giraf_dev;Username=postgres;Password=YourStrong!Passw0rd"
GirafCore__BaseUrl: "http://host.docker.internal:8000"
ports:
- "5171:5171"
depends_on:
postgres_db:
condition: service_healthy
postgres_db:
image: postgres:15
container_name: weekplanner_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: YourStrong!Passw0rd
POSTGRES_DB: giraf_dev
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pgdata: