-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
56 lines (52 loc) · 1.09 KB
/
docker-compose.dev.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
version: '3.9'
services:
product-catalog-dev:
container_name: product-catalog-dev
restart: always
build:
dockerfile: Dockerfile
context: .
target: development
volumes:
- .:/usr/src/app
depends_on:
- postgres
links:
- postgres
env_file:
- .env
command: npm run start:debug
ports:
- 3002:3002
- 9229:9229
networks:
- product-catalog
- shared_network
postgres:
container_name: product-catalog-database
image: postgres:15.1-alpine
restart: always
env_file:
- .env
#- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
- ./data/db:/var/lib/postgresql/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 8002:5432
networks:
- product-catalog
adminer:
container_name: product-catalog-adminer
image: adminer
restart: always
ports:
- '8902:8080'
networks:
- product-catalog
networks:
shared_network:
external: true
product-catalog:
driver: bridge