36 lines
718 B
YAML
36 lines
718 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
NODE_ENV: development
|
|
DB_NAME: ${DB_NAME}
|
|
DB_USER: ${DB_USER}
|
|
DB_PASS: ${DB_PASS}
|
|
DB_HOST: db
|
|
volumes:
|
|
- ./public/thumbnails:/app/public/thumbnails
|
|
db:
|
|
image: mysql:8.0
|
|
volumes:
|
|
- db-store:/var/lib/mysql
|
|
- ./logs:/var/log/mysql
|
|
- ./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
|
|
|
|
volumes:
|
|
db-store:
|
|
|