-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
compose.dev.yaml
34 lines (34 loc) · 1013 Bytes
/
compose.dev.yaml
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
version: "3.8"
networks:
net:
attachable: false
services:
db:
image: docker.io/postgres:14
networks:
- net
env_file:
- ./backend/.env_dev
restart: "no"
app:
depends_on:
- db
build: ./
working_dir: /app/
volumes:
- ./backend/:/app/backend/
- ./frontend/:/app/frontend/
networks:
- net
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "1301:1301"
- "1300:1300"
environment:
- VERSION=0.0.0
env_file:
- ./backend/.env_dev
entrypoint: []
command: sh -c "concurrently --names \"backend,frontend\" --prefix \"{name}:\" --prefix-colors \"#f2caff,#61f2f2\" \"wait-for-it db:5432 -t 0 && cd ./backend/ && npm run dev\" \"wait-for-it app:1301 -t 0 && cd ./frontend/ && npm run dev\""
restart: "no"