-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.debug.yml
51 lines (47 loc) · 1.09 KB
/
docker-compose.debug.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
services:
planner-dev:
container_name: planner-dev
build:
context: .
dockerfile: ./Dockerfile.dev
volumes:
- .:/usr/src/app
environment:
NODE_ENV: development
DOMAIN: http://127.0.0.1:3000/
POSTGRES_DB: planner_db
env_file:
- .env
ports:
- 3000:3000
- 9229:9229
networks:
- internal
command: sh -c "npm install --silent && npx prisma migrate dev --name init && npx prisma generate && npm run dev "
planner-db-dev:
container_name: planner-db-dev
image: postgres:16.4-bullseye
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: example
POSTGRES_DB: planner_db
networks:
- internal
volumes:
- ./postgres:/var/lib/postgresql/data
planner-pgadmin-dev:
image: dpage/pgadmin4
container_name: planner-pgadmin
restart: always
ports:
- "8888:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
networks:
- internal
volumes:
- ./pgadmin-data:/var/lib/pgadmin
networks:
internal: