-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 1.06 KB
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
version: '3.4'
networks:
userapitesttaskvk-back-network:
driver: bridge
services:
userapitesttaskvk.api:
container_name: userapitesttaskvk.api
image: ${DOCKER_REGISTRY-}userapitesttaskvkapi
build:
context: .
dockerfile: src/UserApiTestTaskVk.Api/Dockerfile
ports:
- 5000:80
environment:
- AppSettings__AllowedOrigin=http://localhost:8081
- AppSettings__AdminPassword=Admin
- ConnectionStrings__Db=Host=userapitesttaskvk.db;Port=5432;Database=postgres;Username=postgres;Password=example
- JwtConfig__AccessTokenLifeTime=600
- LockDelaysConfig__UserLockDelay=5
depends_on:
- userapitesttaskvk.db
networks:
- userapitesttaskvk-back-network
restart: on-failure
userapitesttaskvk.db:
container_name: userapitesttaskvk.db
image: postgres:14
ports:
- 5433:5432
environment:
POSTGRES_PASSWORD: example
networks:
- userapitesttaskvk-back-network
volumes:
- ..\UserApiTestTaskVk.Volumes\Postgres:/var/lib/postgresql/data
restart: on-failure