youtube_live_calendar/docker-compose.yml

39 lines
840 B
YAML
Raw Normal View History

2024-12-25 05:29:02 +00:00
services:
app:
build:
context: .
dockerfile: Dockerfile.production
2024-12-25 05:29:02 +00:00
ports:
- "80:3000"
2024-12-25 05:29:02 +00:00
depends_on:
- db
environment:
NODE_ENV: production
2024-12-25 05:29:02 +00:00
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: db
TZ: Asia/Tokyo
volumes:
- ./public/thumbnails:/app/public/thumbnails
- ./logs/app:/app/logs
restart: always
2024-12-25 05:29:02 +00:00
db:
image: mysql:8.0
volumes:
- db-store-prodcution:/var/lib/mysql
- ./logs/db:/var/log/mysql
2024-12-25 05:29:02 +00:00
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_ROOT_PASSWORD: ${DB_PASS}
TZ: ${TZ}
ports:
- ${DB_PORT}:3306
restart: always
2024-12-25 05:29:02 +00:00
volumes:
db-store-prodcution: