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: dev_jwt_secret_change_in_production DB_HOST: db DB_USER: root DB_PASSWORD: rootpassword DB_NAME: whats_the_point TMDB_API_KEY: your_tmdb_api_key_here 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://localhost:4000/api depends_on: - backend ports: - "5173:5173" volumes: - ./frontend:/app - /app/node_modules volumes: db_data: