123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- version: "3"
- services:
- web:
- image: nginx:latest
- restart: always
- ports:
- - "80:80"
- volumes:
- - ./empire:/var/www/html/
- - ./default.conf:/etc/nginx/conf.d/default.conf
- networks:
- - empire
- depends_on:
- - php
- links:
- - php
- php:
- build: ./php
- restart: always
- volumes:
- - ./empire:/var/www/html/
- networks:
- - empire
- depends_on:
- - mysql
- links:
- - mysql
- mysql:
- image: mysql:5.7
- platform: linux/x86_64
- command: --lower_case_table_names=1 --sql-mode=''
- restart: always
- ports:
- - "3306:3306"
- volumes:
- - "./mysql:/var/lib/mysql"
- - "./empire/application/db/migrations/setup.sql:/docker-entrypoint-initdb.d/setup.sql"
- networks:
- - empire
- environment:
- MYSQL_ROOT_HOST: "%"
- MYSQL_DATABASE: "empire"
- MYSQL_USER: "test"
- MYSQL_PASSWORD: "test"
- MYSQL_ROOT_PASSWORD: "test"
- MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
- phpmyadmin:
- image: phpmyadmin/phpmyadmin:latest
- restart: always
- environment:
- PMA_HOST: mysql
- PMA_USER: root
- PMA_PASSWORD: test
- networks:
- - empire
- ports:
- - "81:80"
- depends_on:
- - mysql
- links:
- - mysql
- networks:
- empire:
- driver: bridge
|