Really lost on how to do this guys; i feel like the blueprints docs maybe are running a little short. any help is appreciated
version: '3.8'
services:
nginx-svc:
build:
context: .
dockerfile: ./.docker-files/nginx/Dockerfile
ports:
- 80:80
volumes:
- ./web:/var/www/html/web
depends_on:
- php-svc
php-svc:
build:
context: .
dockerfile: ./.docker-files/php/Dockerfile
expose:
- 9000
volumes:
- ./config:/var/www/html/config
- ./templates:/var/www/html/templates
- ./storage:/var/www/html/storage
- ./modules:/var/www/html/modules
- ./web:/var/www/html/web
- ./composer.json:/var/www/html/composer.json
environment:
ENVIRONMENT: $ENVIRONMENT
DB_DRIVER: $DB_DRIVER
DB_SERVER: $DB_SERVER
DB_PORT: $DB_PORT
DB_DATABASE: $DB_DATABASE
DB_USER: $DB_USER
DB_PASSWORD: $DB_PASSWORD
DB_SCHEMA: $DB_SCHEMA
DB_TABLE_PREFIX: $DB_TABLE_PREFIX
SITE_URL: $SITE_URL
SECURITY_KEY: $SECURITY_KEY
mysql-svc:
image: mysql:8.0
volumes:
- db-data-cityar-craftcms:/var/lib/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: $DB_ROOTPASSWORD
MYSQL_DATABASE: $DB_DATABASE
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
command: mysqld --default-authentication-plugin=mysql_native_password
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 45s
interval: 10s
retries: 10
phpmyadmin-svc:
image: phpmyadmin/phpmyadmin
ports:
- 8085:80
environment:
PMA_HOST: mysql-svc
volumes:
db-data-cityar-craftcms: