-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 860 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
services:
web-api:
image: ${DOCKER_REGISTRY-}webapi
container_name: web-api
build:
context: .
dockerfile: src/Web.Api/Dockerfile
ports:
- 5000:8080
- 5001:8081
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- ConnectionStrings__Database=Host=postgres;Port=5432;Database=clean-architecture;Username=postgres;Password=postgres;Include Error Detail=true
depends_on:
- postgres
- seq
postgres:
image: postgres:17
container_name: postgres
environment:
- POSTGRES_DB=clean-architecture
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./.containers/db:/var/lib/postgresql/data
ports:
- 5432:5432
seq:
image: datalust/seq:2024.3
container_name: seq
environment:
- ACCEPT_EULA=Y
ports:
- 8081:80