Files
whats-the-point/docker-compose.yml
2026-01-29 00:58:32 -05:00

58 lines
1.2 KiB
YAML

version: '3.8'
services:
db:
image: mariadb:10.11
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: whats_the_point
volumes:
- db_data:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
PORT: 4000
JWT_SECRET: ${JWT_SECRET}
DB_HOST: db
DB_USER: root
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: whats_the_point
TMDB_API_KEY: ${TMDB_API_KEY}
depends_on:
db:
condition: service_healthy
ports:
- "4000:4000"
volumes:
- ./backend:/app
- /app/node_modules
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
VITE_API_URL: http://192.168.1.70:4000/api
depends_on:
- backend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
volumes:
db_data: