# Nuxt publication
nuxt-public:
container_name: gorodbrand.nuxt_public
restart: always
build: ./nuxt_public
ports:
- 3200:3000
expose:
- 3000
app:
container_name: gorodbrand.app
restart: always
build: .
volumes:
- .:/www
- ./docker/php/log:/var/log
depends_on:
- db
links:
- db
db:
image: percona:latest
container_name: gorodbrand.db
restart: always
ports:
- 3307:3306
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=pkRkEzUDdqOEFXL1pmNkcyQ2RL
- MYSQL_DATABASE=gorodbrand
- MYSQL_ROOT_HOST=%
DB_DRIVER=pdo_mysql
DB_HOST=127.0.0.1 # or db or 0.0.0.0 or localhost
DB_PORT=3307
DB_DATABASE=gorodbrand
DB_USERNAME=root
DB_PASSWORD=pkRkEzUDdqOEFXL1pmNkcyQ2RL
Поправьте меня, если я ошибаюсь.