-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (34 loc) · 937 Bytes
/
docker-compose.yml
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
services:
database:
image: postgres:latest
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=CubeTimerDb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend-network
backend:
build:
context: ./CubeTimer.WebApi/CubeTimer.WebApi
dockerfile: Dockerfile
ports:
- "5168:5168"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Host=database;Port=5432;Database=CubeTimerDb;Username=user;Password=password
- JwtSettings__SigningKey=4BuVZdjXhI73BPwc+tcaExErX0e95ZxRZf8+y+Tcx8o=
- JwtSettings__Issuer=http://localhost:5168
- JwtSettings__Audience=http://localhost:5168
depends_on:
- database
networks:
- backend-network
volumes:
postgres_data:
networks:
backend-network:
driver: bridge