123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- version: "3.5"
- services:
- mysql_d7:
- image: mariadb:latest
- volumes:
- - db-data-d7:/var/lib/mysql
- - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- - "${DB_IMPORTE_FILE_D7}:/docker-entrypoint-initdb.d/popsu_d7.sql"
- networks:
- - database
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_NAME_D7}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- mysql_d9:
- image: mariadb:latest
- volumes:
- - db-data-d9:/var/lib/mysql
- - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- - "${DB_IMPORTE_FILE_D9}:/docker-entrypoint-initdb.d/popsu_d9.sql"
- networks:
- - database
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_NAME_D9}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- redis:
- image: redis:6
- volumes:
- - redis-data:/data
- networks:
- - redis
- ports:
- - "6379"
- php_d7:
- build: ./Docker/php-5.6-fpm/
- volumes:
- - php-d7-user-data:/home/${USER_UNAME}
- - "${PROJECT_ROOT_D7}:/var/www/d7"
- working_dir: "/var/www/d7"
- networks:
- - database
- - server
- - redis
- depends_on:
- - mysql_d7
- - redis
- php_d9:
- build: ./Docker/php-7.4-fpm/
- user: ${USER_UID}:${USER_GID}
- volumes:
- - php-d9-user-data:/home/${USER_UNAME}
- - "${PROJECT_ROOT_D7}:/var/www/d7"
- - "${PROJECT_ROOT_D9}:/var/www/d9"
- - "${LOG_ROOT}/php:/var/log:rw"
- - "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini"
- working_dir: "/var/www/d9"
- networks:
- - database
- - redis
- - server
- # for xdebug
- # https://github.com/docker/for-linux/issues/264#issuecomment-965465879
- extra_hosts:
- - host.docker.internal:host-gateway
- depends_on:
- - mysql_d9
- - redis
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8981:80
- networks:
- - database
- depends_on:
- - mysql_d7
- - mysql_d9
- environment:
- PMA_HOSTS: mysql_d7,mysql_d9
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8980:80
- working_dir: "/var/www"
- volumes:
- - "${PROJECT_ROOT_D7}:/var/www/d7"
- - "${PROJECT_ROOT_D9}:/var/www/d9"
- - "${LOG_ROOT}:/var/log:rw"
- networks:
- - server
- depends_on:
- - php_d7
- - php_d9
- volumes:
- db-data-d7:
- db-data-d9:
- redis-data:
- php-d7-user-data:
- php-d9-user-data:
- networks:
- database:
- redis:
- server:
|