33 lines
573 B
YAML
33 lines
573 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build: ./backend
|
|
container_name: battleship_backend
|
|
restart: unless-stopped
|
|
environment:
|
|
- DB_HOST=battleship-mysql
|
|
- DB_PORT=3306
|
|
- DB_USER=root
|
|
- DB_PASSWORD=somepassword
|
|
- DB_NAME=battleship
|
|
ports:
|
|
- "4000:4000"
|
|
networks:
|
|
- app-net
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
container_name: battleship_frontend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- backend
|
|
ports:
|
|
- "3001:80"
|
|
networks:
|
|
- app-net
|
|
|
|
networks:
|
|
app-net:
|
|
external: true
|