-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.07 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
version: '3.8'
services:
inv-api:
build:
context: .
target: ${ENV_MODE}
dockerfile: ./docker/Node.inventories.Dockerfile
env_file:
- .env
ports:
- '${NODE_PORT}:${NODE_PORT}'
volumes:
- ./src:/app/src
- /app/node_modules
networks:
- inv-network
db:
build:
context: .
dockerfile: ./docker/POSTGRES.inventory.dockerfile
container_name: ${POSTGRES_SERVER_NAME}
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB_NAME}
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- inv-network
pgadmin:
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: [email protected] # TODO: dynamic val
PGADMIN_DEFAULT_PASSWORD: admin # TODO: dynamic val
ports:
- '5050:80' # TODO: dynamic val
depends_on:
- db
networks:
- inv-network
volumes:
postgres-data:
networks:
inv-network: