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