Last active
November 29, 2021 06:06
-
-
Save lawson-ng/fe255752a8e3d5714b7cdc39af77575c to your computer and use it in GitHub Desktop.
Docker compose for mysql and admier
This file contains 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: "2.1" | |
mysql: | |
image: mysql:5.7 | |
restart: always | |
ports: | |
- '3307:3306' | |
container_name: dev-mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: database | |
volumes: | |
- mysql:/var/lib/mysql | |
mysql-admin: | |
image: adminer:4 | |
ports: | |
- 8080:8080 | |
restart: always | |
container_name: dev-mysql-admin | |
environment: | |
ADMINER_DEFAULT_SERVER: mysql | |
volumes: | |
mysql: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment