forked from yanpitangui/dotnet-api-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 811 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 811 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
# docker-compose up -d
# docker-compose down
version: "3.6"
networks:
localdev:
name: localdev
services:
db-server:
image: postgres:latest
container_name: db-server
ports:
- "5432:5432"
networks:
- localdev
environment:
- POSTGRES_USER=app_user # The PostgreSQL user (useful to connect to the database)
- POSTGRES_PASSWORD=myHardCoreDevDb123 # The PostgreSQL password (useful to connect to the database)
- POSTGRES_DB=HeroDb # The PostgreSQL default database (automatically created at first launch)
boilerplate-api:
build:
context: .
dockerfile: src/Boilerplate.Api/Dockerfile
image: boilerplate-api:local
container_name: boilerplate-api
depends_on:
- db-server
networks:
- localdev
volumes:
sqlvolume: