-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 796 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (33 loc) · 796 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
37
version: '3.4'
services:
local_postgres:
image: postgres:latest
restart: always
ports:
- '5432:5432'
restart: always
volumes:
- db_volume:/var/lib/postgresql/data
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'P@123'
networks:
- libraryapp-dev
libraryapp.api:
image: ${DOCKER_REGISTRY-}libraryappapi
depends_on:
- 'local_postgres'
build:
context: .
dockerfile: LibraryApp.API/Dockerfile
ports:
- '3000:80'
environment:
'ConnectionStrings__LibraryConnection': "host=local_postgres;port=5432;database=LibraryTestDb;username=postgres;password=P@123;Pooling=true;"
networks:
libraryapp-dev:
volumes:
db_volume:
networks:
libraryapp-dev:
driver: bridge