docker-compose file

This commit is contained in:
sskender 2020-01-12 17:28:20 +01:00
parent 6dc04689e2
commit 3178bc0748
No known key found for this signature in database
GPG Key ID: 4E3947A16854E11C
1 changed files with 43 additions and 0 deletions

43
docker-compose.yml Normal file
View File

@ -0,0 +1,43 @@
version: '3.3'
services:
mariadb:
container_name: mariadb
build:
context: ./mariadb
dockerfile: Dockerfile
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
env_file:
- mariadb.env
networks:
- intranet
ports:
- "3306:3306"
restart: always
volumes:
- mariadb:/var/lib/mysql
phpmyadmin:
container_name: phpmyadmin
depends_on:
- mariadb
environment:
- PMA_HOST=mariadb
image: "phpmyadmin/phpmyadmin"
networks:
- intranet
ports:
- "8080:80"
restart: always
networks:
intranet:
driver: bridge
volumes:
mariadb: