-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (98 loc) · 2.43 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
volumes:
beta-data:
external: true
services:
react:
image: node:lts-bullseye
command: /bin/bash run.sh
working_dir: /app
volumes:
- ./ghi/app:/app
ports:
- "3000:3000"
environment:
HOST_OS: ${OS}
NODE_ENV: development
HOST: "0.0.0.0"
database:
image: postgres:14.2-bullseye
volumes:
- beta-data:/var/lib/postgresql/data
- ./db:/docker-entrypoint-initdb.d
environment:
- POSTGRES_MULTIPLE_DATABASES=inventory,sales,service
- POSTGRES_PASSWORD=test-databases
ports:
- 15432:5432
inventory-api:
build:
context: ./inventory/api
dockerfile: ./Dockerfile.dev
ports:
- "8100:8000"
volumes:
- ./inventory/api:/app
depends_on:
- database
environment:
DATABASE_URL: postgres://inventory:password@database:5432/inventory
WAIT_HOSTS: database:5432
WAIT_TIMEOUT: 240
service-api:
build:
context: ./service/api
dockerfile: ./Dockerfile.dev
ports:
- "8080:8000"
volumes:
- ./service/api:/app
depends_on:
- database
environment:
DATABASE_URL: postgres://service:password@database:5432/service
WAIT_HOSTS: database:5432
WAIT_TIMEOUT: 240
service-poller:
build:
context: ./service/poll
dockerfile: ./Dockerfile.dev
volumes:
- ./service/poll:/app
- ./service/api/service_project:/app/service_project
- ./service/api/service_rest:/app/service_rest
depends_on:
- database
- service-api
environment:
DATABASE_URL: postgres://service:password@database:5432/service
WAIT_HOSTS: database:5432,service-api:8000
WAIT_TIMEOUT: 240
sales-api:
build:
context: ./sales/api
dockerfile: ./Dockerfile.dev
ports:
- "8090:8000"
volumes:
- ./sales/api:/app
depends_on:
- database
environment:
DATABASE_URL: postgres://sales:password@database:5432/sales
WAIT_HOSTS: database:5432
WAIT_TIMEOUT: 240
sales-poller:
build:
context: ./sales/poll
dockerfile: ./Dockerfile.dev
volumes:
- ./sales/poll:/app
- ./sales/api/sales_project:/app/sales_project
- ./sales/api/sales_rest:/app/sales_rest
depends_on:
- database
- sales-api
environment:
DATABASE_URL: postgres://sales:password@database:5432/sales
WAIT_HOSTS: database:5432,sales-api:8000
WAIT_TIMEOUT: 240