-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (34 loc) · 942 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (34 loc) · 942 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
version: '3'
services:
backend:
image: pushpong_backend
build:
context: ./backend
command: sh ./scripts/docker-start-dev.sh
ports:
- 3000:3000
stdin_open: true
volumes:
- ./backend/:/backend
- backend-deps:/backend/node_modules
frontend:
image: pushpong_frontend
depends_on:
- backend
build:
context: ./frontend
environment:
- REACT_APP_BACKEND_PROTOCOL=http
- REACT_APP_BACKEND_HOST=localhost
- REACT_APP_BACKEND_PORT=3000
- REACT_APP_ONLINE_MULTIPLAYER_ENABLED=true
command: sh ./scripts/docker-start-dev.sh
ports:
- 3001:3001
stdin_open: true
volumes:
- ./frontend:/frontend
- frontend-deps:/frontend/node_modules
volumes:
backend-deps:
frontend-deps: