JustPaste.it

version: '3'
services:
php_magento:
build: docker/php
volumes:
- ./:/app
networks:
- appnet
nginx:
image: bitnami/nginx
ports:
- 80:80
- 443:443
volumes:
- ./:/app
- ./docker/nginx/elmaro.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:ro
environment:
- NGINX_HOST=elmaro.test
- NGINX_PORT=80
- HTTPS_METHOD=noredirect
networks:
- appnet
mysql:
image: mariadb:10
container_name: mysql
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=elmaro
volumes:
- db-data:/var/lib/mysql
phpmyadmin:
container_name: phpmyadmin
restart: always
image: phpmyadmin/phpmyadmin:latest
environment:
- MYSQL_ROOT_PASSWORD=root
- PMA_USER=root
- PMA_PASSWORD=root
ports:
- "8080:80"
links:
- mysql:db
depends_on:
- mysql
volumes:
db-data:
external: false
networks:
appnet:
driver: "bridge"