-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
39 lines (39 loc) · 895 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
39 lines (39 loc) · 895 Bytes
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
name: task-api-dev
services:
server:
build:
context: "."
target: base
command: "./scripts/wait-for-it.sh database:5432 -- ./scripts/dev-cmd.sh"
environment:
PRISMA_DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database:5432/${POSTGRES_DB}
expose:
- 3000
ports:
- 3000:3000
volumes:
- ./src:/api/src
- ./package.json:/api/package.json
networks:
- dev_vm
depends_on:
- database
database:
image: postgres:16.0-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
restart: always
expose:
- ${POSTGRES_HOST_PORT}
ports:
- ${POSTGRES_HOST_PORT}:5432
volumes:
- database:/var/lib/postgresql/data
networks:
- dev_vm
volumes:
database:
networks:
dev_vm: