WOSP-APP/serwer/docker-compose.yml

29 lines
643 B
YAML
Raw Normal View History

2025-01-01 17:30:11 +00:00
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "${APP_PORT}:${APP_PORT}"
volumes:
- ./prod.env:/usr/src/app/.env
- ./logs:/usr/src/app/logs
- ./tmp:/usr/src/app/tmp
depends_on:
- db
restart: always
db:
build:
context: .
dockerfile: Dockerfile.db
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "${DB_PORT}:3306"
volumes:
- ./app/baza-import.sql:/docker-entrypoint-initdb.d/baza.sql