-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 895 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (31 loc) · 895 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
services:
webapi:
build:
context: .
dockerfile: src/WebApi/Dockerfile
depends_on:
- database
environment:
- ASPNETCORE_ENVIRONMENT=Production
- DbConnectionSettings__Host=database
- DbConnectionSettings__Port=5432
- DbConnectionSettings__Password=${POSTGRES_PASSWORD}
- DbConnectionSettings__Username=${POSTGRES_USER}
- DbConnectionSettings__Database=ecommerce-management
- JwtSettings__Secret=${TOKEN_SECRET}
- HmacSignatureSettings__Secret=${HMAC_SIGNATURE_SECRET}
ports:
- 8000:8080
- 8001:8081
database:
image: "postgres:latest"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ecommerce-management
ports:
- 8010:5432
volumes:
- ./.containers/database:/var/lib/postgresql/data
env_file:
- .env