Files
scolapasta/docker-compose.yaml

36 lines
662 B
YAML

version: "3.8"
services:
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: vulnapp
ports:
- "3306:3306"
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql:Z
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 30s
timeout: 10s
retries: 3
backend:
build: ./backend
restart: always
ports:
- "5000:5000"
cap_add:
- NET_RAW
depends_on:
db:
condition: service_healthy
frontend:
build: ./frontend
restart: always
ports:
- "3000:3000"
depends_on:
- backend