forked from utmgdsc/hacklab-booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
46 lines (43 loc) · 936 Bytes
/
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
services:
nginx:
restart: always
depends_on:
- frontend
- backend
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "3555:80"
backend:
restart: always
image: node:18-alpine
command: ["npm","run", "dev", "--prefix", "/app"]
environment:
- DATABASE_URL=postgres://postgres:example@db:5432/postgres
- NODE_ENV=development
- FRONTEND_URL=http://localhost:3000
volumes:
- ./backend:/app
frontend:
image: node:18-alpine
restart: always
# command: ["npm","run", "dev", "--prefix", "/app"]
build:
context: ./frontend
dockerfile: dev.dockerfile
ports:
- "3001:3001"
volumes:
- ./frontend/src:/app/src
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
volumes:
- ./db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
db_data: