-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (45 loc) · 1.04 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.4'
# Note that --project-directory ./source
# must be passed to every docker-compose command
# ./source is the docker-compose context
volumes:
api-obj:
api-bin:
postgres-data:
services:
db:
image: postgres:10
environment:
POSTGRES_DB: development
POSTGRES_USER: db-user
POSTGRES_PASSWORD: 1234
PGDATA: /var/lib/postgresql/data
volumes:
- postgres-data:/var/lib/postgresql/data
- ./DB:/scripts
# Debugging database
adminer:
image: adminer
restart: always
ports:
# Host:Container
- "28080:8080"
links:
- db:db.docker
api:
build:
context: ./
dockerfile: Dockerfile.backend
target: development
command: bash -c " dotnet watch run"
ports:
- "8081:8081"
links:
- db:db.docker
environment:
PORT: 8081
ConnectionStrings:default: "User ID=db-user;Password=1234;Host=db.docker;Port=5432;Database=development;"
volumes:
- ./:/app
# - api-obj:/app/obj
# - api-bin:/app/bin