This repository has been archived by the owner on Jul 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
66 lines (64 loc) · 1.75 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
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.8'
services:
db-generic:
container_name: postgres-generic
image: postgres:11.12
restart: unless-stopped
environment:
POSTGRES_USER: demo
POSTGRES_PASSWORD: demopw
POSTGRES_DB: delivery
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- 5432:5432
volumes:
- ./data/postgres-generic/pgdata:/var/lib/postgresql/data/pgdata
db-specific:
container_name: postgres-specific
image: postgres:11.12
restart: unless-stopped
environment:
POSTGRES_USER: demo
POSTGRES_PASSWORD: demopw
POSTGRES_DB: shop
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- 5433:5432
volumes:
- ./data/postgres-specific/pgdata:/var/lib/postgresql/data/pgdata
generic:
build: ./projGenericService
container_name: generic-service
restart: unless-stopped
image: generic-service
ports:
- 8081:8081
depends_on:
- db-generic
specific:
build: ./projSpecificService
container_name: delivery-service
restart: unless-stopped
image: specific-service
ports:
- 8080:8080
depends_on:
- db-specific
web-application-client:
build:
context: ./projClientWeb
args:
API_URL: ${API_URL}
container_name: web-application-client
restart: unless-stopped
ports:
- 80:80
web-application-manager-rider:
build:
context: ./projManagerRiderWeb
args:
API_URL: ${API_URL}
container_name: web-application-manager-rider
restart: unless-stopped
ports:
- 81:80