123456789101112131415161718192021222324252627282930313233343536 |
- version: '3.8'
- services:
- php-apache-environment:
- container_name: php-apache-ci
- build:
- context: ./php
- dockerfile: Dockerfile
- depends_on:
- - db
- volumes:
- - ./php/src:/var/www/html/
- - ./php-docker/php.ini:/usr/local/etc/php/php.ini
- ports:
- - 7700:80
- db:
- container_name: db-ci
- # image: mysql:5.7
- image: mariadb:10.5
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE: MY_DATABASE
- MYSQL_USER: MYSQL_USER
- MYSQL_PASSWORD: MYSQL_PASSWORD
- ports:
- - 3310:3306
- phpmyadmin:
- container_name: phpmyadmin-ci
- image: phpmyadmin/phpmyadmin
- ports:
- - '8080:80'
- restart: always
- environment:
- PMA_HOST: db
- depends_on:
- - db
|