-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-dev.yaml
48 lines (47 loc) · 903 Bytes
/
docker-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version : "3.9"
services :
front:
build:
context: ./frontend
dockerfile: Dockerfile.dev
image: frontend_dev:local
volumes:
- ./frontend/code/src:/app/src
networks:
- pongnet
restart: always
init: true
ports:
- 3000:3000
database:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: test
volumes:
- database:/var/lib/postgresql/data
networks:
- pongnet
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile.dev
image: backend_dev:local
networks:
- pongnet
depends_on:
- database
volumes:
- ./backend/code/src:/app/src
- ./backend/code/prisma:/app/prisma
restart: always
init : true
ports:
- 5555:5555
- 3001:3001
- 3004:3004
volumes:
database:
networks:
pongnet: