mariadb-phpmyadmin-docker/docker-compose.yml

36 lines
719 B
YAML
Raw Normal View History

2020-01-12 19:28:20 +03:00
version: '3.3'
services:
mariadb:
container_name: mariadb
image: mariadb:latest
2020-01-12 19:28:20 +03:00
env_file:
- ".env"
2020-01-12 19:28:20 +03:00
networks:
- intranet
ports:
- "3306:3306"
restart: always
volumes:
- ./restore:/docker-entrypoint-initdb.d:ro
- db_data:/var/lib/mysql
2020-01-12 19:28:20 +03:00
phpmyadmin:
container_name: phpmyadmin
depends_on:
- mariadb
environment:
- PMA_HOST=mariadb
image: phpmyadmin/phpmyadmin:latest
2020-01-12 19:28:20 +03:00
networks:
- intranet
ports:
- "8080:80"
restart: always
networks:
intranet:
driver: bridge
volumes:
db_data: