-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (34 loc) · 890 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
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP .NET Core service.
version: '3.4'
services:
postgresql_database:
image: postgres:latest
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=ethWalletDb
ports:
- "5432:5432"
restart: always
volumes:
- database-data:/var/lib/postgresql/data/
networks:
- aspnetcoreapp-network
ethereumexchangewalletapi:
image: ethereumexchangewalletapi
environment:
- POSTGRESSETTINGS__HOST=postgresql_database
build:
context: .
dockerfile: EthereumExchangeWallet.Api/Dockerfile
depends_on:
- "postgresql_database"
ports:
- 5000:5000
networks:
- aspnetcoreapp-network
volumes:
database-data:
networks:
aspnetcoreapp-network:
driver: bridge