41 lines
857 B
YAML
41 lines
857 B
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
|
|
|
|
web:
|
|
build: .
|
|
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
|
|
|
|
volumes:
|
|
db_data:
|