forked from PS1115-Skala/backend
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 874 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 874 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
version: '3.8'
services:
postgresdb:
image: postgres:13
container_name: db_reserva_cont
environment:
POSTGRES_DB: ${DATABASE:-reserva}
POSTGRES_PASSWORD: ${PASSWORD:-1234}
volumes:
- ./src/data_base/init_db/createdb.sql:/docker-entrypoint-initdb.d/createdb.sql
- ./src/data_base/init_db/fillerdb.sql:/docker-entrypoint-initdb.d/fillerdb.sql
- ./src/data_base:/var/lib/postgres/data
restart: always
ports:
- '${PORTDB:-5432}:5432'
backend:
build: .
image: reservabackend
container_name: backend_reserva_cont
environment:
- HOST=postgresdb
depends_on:
- postgresdb
ports:
- '${PORT:-3000}:${PORT:-3000}'
- 9229:9229
volumes:
- .:/app
- /app/node_modules
restart: always
command: ./src/scripts/wait-for-it.sh postgresdb:5432 -- npm run dev