docker
unknown
yaml
2 years ago
1.0 kB
2
Indexable
Never
version: '3.8' services: database: image: mysql:8 container_name: global_db command: --default-authentication-plugin=mysql_native_password --sql_mode="NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY" environment: MYSQL_ROOT_PASSWORD: developer MYSQL_DATABASE: global TZ: UTC volumes: - MySQLStorageGlobal:/var/lib/mysql networks: global.local: ipv4_address: 192.168.144.1 aliases: - db.global.local expose: - 3306 ports: - 33066:3306 webserver: container_name: global_web build: context: .docker/webserver dockerfile: Dockerfile volumes: - ./:/app links: - database networks: global.local: ipv4_address: 192.168.144.2 aliases: - global.local expose: - 80 ports: - 80:80 networks: global.local: driver: bridge ipam: config: - subnet: 192.168.144.0/24 volumes: MySQLStorageGlobal: