12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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
- 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
|