-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.59 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
version: "2.4"
services:
app:
build:
context: packages/inventory-app
image: inventory-app-dev
volumes:
- "./packages/inventory-app:/inventory/inventory-app"
- "app-node-modules:/inventory/inventory-app/node_modules"
ports:
- "3000:3000"
depends_on:
- api
api:
build:
context: packages/inventory-api
image: inventory-api-dev
volumes:
- "./packages/inventory-api:/inventory/inventory-api"
- "api-node-modules:/inventory/inventory-api/node_modules"
environment:
API_DB_HOST: "db"
API_DB_PORT: "5432"
API_DB_USERNAME: "inventory-user"
API_DB_PASSWORD: "inventory-pwd"
API_DB_DATABASE: "inventory"
ports:
- "9000:9000"
- "9042:9042"
depends_on:
- db
db:
image: postgres:12.5-alpine
ports:
- "5432:5432"
volumes:
- "postgres_data:/var/lib/postgresql/data"
environment:
POSTGRES_DB: "inventory"
POSTGRES_USER: "inventory-user"
POSTGRES_PASSWORD: "inventory-pwd"
POSTGRES_HOST: "0.0.0.0:5432"
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "8080:80"
environment:
PGADMIN_DEFAULT_EMAIL: "pgadmin@test.com"
PGADMIN_DEFAULT_PASSWORD: "pgadmin"
depends_on:
- db
volumes:
postgres_data:
api-node-modules:
app-node-modules: