-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.24 KB
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
version: '3.8'
services:
cataloghost:
build:
dockerfile: ./Turnit.GenericStore.WebApi.CatalogHost/Dockerfile
image: cataloghost
container_name: cataloghost
ports:
- '5100:80'
volumes:
- ./Turnit.GenericStore.WebApi.CatalogHost/UnprocessedRequests:/app/UnprocessedRequests
links:
- postgres
environment:
- ConnectionStrings__Default=Server=postgres;Port=5432;Database=turnit_store;User ID=postgres;Password=postgres
inventoryhost:
build:
dockerfile: ./Turnit.GenericStore.WebApi.InventoryHost/Dockerfile
image: inventoryhost
container_name: inventoryhost
ports:
- '5200:80'
volumes:
- ./Turnit.GenericStore.WebApi.InventoryHost/UnprocessedRequests:/app/UnprocessedRequests
links:
- postgres
environment:
- ConnectionStrings__Default=Server=postgres;Port=5432;Database=turnit_store;User ID=postgres;Password=postgres
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5632:5432'
volumes:
- ./sql/sql-dump.sql:/docker-entrypoint-initdb.d/init.sql
- turnit_data:/var/lib/postgresql/data
volumes:
turnit_data: