41 lines
822 B
YAML
41 lines
822 B
YAML
name: block-game
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: blockgame
|
|
volumes:
|
|
- postgres_data_dev:/var/lib/postgresql/data
|
|
backend:
|
|
build:
|
|
context: backend
|
|
dockerfile: Dockerfile.dev
|
|
ports:
|
|
- 8081:8080
|
|
volumes:
|
|
- ./backend:/app
|
|
frontend:
|
|
build:
|
|
context: frontend
|
|
dockerfile: Dockerfile.dev
|
|
ports:
|
|
- "8082:3000"
|
|
environment:
|
|
- CHOKIDAR_USEPOLLING=true
|
|
- DANGEROUSLY_DISABLE_HOST_CHECK=true
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
- /app/build
|
|
router:
|
|
image: nginx:latest
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./nginx.dev.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
volumes:
|
|
postgres_data_dev: |