-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (52 loc) · 1.13 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
53
version: '3.4'
services:
gateway:
image: ${DOCKER_REGISTRY-}gateway
build:
context: .
dockerfile: src/Gateway/Dockerfile
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5000:80"
restart: on-failure
crm:
image: ${DOCKER_REGISTRY-}crm
build:
context: .
dockerfile: src/Services/Crm.Api/Dockerfile
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5001:80"
depends_on:
- postgres
- gateway
- identity
restart: on-failure
identity:
container_name: identity
image: ${DOCKER_REGISTRY-}identity
build:
context: .
dockerfile: src/Services/Identity.Api/Dockerfile
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5002:80"
depends_on:
- postgres
restart: on-failure
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pass}
ports:
- "5432:5432"
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: