-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-webapp.yml
57 lines (52 loc) · 1.17 KB
/
docker-compose-webapp.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
53
54
55
56
57
version: '3.4'
networks:
polkanalysis_network:
driver: bridge
volumes:
polkanalysis_data:
driver: local
services:
polkanalysis.api:
container_name: Polkanalysis_Api
image: ${DOCKER_REGISTRY-}polkanalysis.api
build:
context: .
dockerfile: api.dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ports:
- 5000:80
depends_on:
- db
networks:
- polkanalysis_network
polkanalysis.webapp:
container_name: Polkanalysis_WebApp
image: ${DOCKER_REGISTRY-}polkanalysis.webapp
build:
context: .
dockerfile: webapp.dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ports:
- 5001:80
depends_on:
- db
networks:
- polkanalysis_network
db:
container_name: Polkanalysis_Database
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
expose:
- "5433" # Publishes 5433 to other containers but NOT to host machine
ports:
- "5433:5433"
command: -p 5433
volumes:
- polkanalysis_data:/var/lib/postgresql/data
networks:
- polkanalysis_network