Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- mysql:
- image: mysql:5.7
- volumes:
- - ./data:/var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: "rootpwd"
- MYSQL_USER: 'testuser'
- MYSQL_PASSWORD: 'testpassword'
- adminer:
- image: adminer
- restart: always
- ports:
- - 8080:8080
- links:
- - mysql:db
- volumes:
- mysql:
- # This file defines all environment variables that the application needs.
- # DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE.
- # Use ".env.local" for local overrides during development.
- # Use real environment variables when deploying to production.
- # https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
- ###> symfony/framework-bundle ###
- APP_ENV=dev
- APP_SECRET=825aa371242c34bdcc0c693ac4241bcf
- #TRUSTED_PROXIES=127.0.0.1,127.0.0.2
- #TRUSTED_HOSTS='^localhost|example.com$'
- ###< symfony/framework-bundle ###
- ###> doctrine/doctrine-bundle ###
- # Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
- # For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
- # Configure your db driver and server_version in config/packages/doctrine.yaml
- DATABASE_URL=mysql://testuser:testpassword@127.0.0.1:3306/dbname
- ###< doctrine/doctrine-bundle ###
- parameters:
- # Adds a fallback DATABASE_URL if the env var is not set.
- # This allows you to run cache:warmup even if your
- # environment variables are not available yet.
- # You should not need to change this value.
- #env(DATABASE_URL): ''
- doctrine:
- dbal:
- # configure these for your database server
- driver: 'pdo_mysql'
- server_version: '5.7'
- charset: utf8mb4
- default_table_options:
- charset: utf8mb4
- collate: utf8mb4_unicode_ci
- url: '%env(resolve:DATABASE_URL)%'
- unix_socket: /tmp/mysql.sock
- orm:
- auto_generate_proxy_classes: true
- naming_strategy: doctrine.orm.naming_strategy.underscore
- auto_mapping: true
- mappings:
- App:
- is_bundle: false
- type: annotation
- dir: '%kernel.project_dir%/src/Entity'
- prefix: 'AppEntity'
- alias: App
- version: '3'
- services:
- mysql:
- image: mysql:5.7
- volumes:
- - ./data:/var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: "rootpwd"
- MYSQL_USER: 'testuser'
- MYSQL_PASSWORD: 'testpassword'
- ports:
- - 3306:3306
- adminer:
- image: adminer
- restart: always
- ports:
- - 8080:8080
- links:
- - mysql:db
- volumes:
- mysql:
- DATABASE_URL=mysql://testuser:testpassword@127.0.0.1:3306/dbname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement