Created
December 28, 2017 12:17
-
-
Save Loupax/39d120952f9a35166165369cf4aa583b to your computer and use it in GitHub Desktop.
Example docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
my-db: | |
image: mariadb | |
restart: always | |
ports: | |
- 8081:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} | |
volumes: | |
- ./mysql-data:/var/lib/mysql | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin:latest | |
restart: always | |
ports: | |
- 8082:80 | |
links: | |
- my-db:db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment