Created
November 18, 2021 06:52
-
-
Save mrcat323/b36612c0dc9abd772823ded3f79aaba4 to your computer and use it in GitHub Desktop.
some docker compose
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: '3.7' | |
services: | |
mysql: | |
image: mysql:5.7 | |
container_name: mysql_db | |
restart: unless-stopped | |
environment: | |
MYSQL_ROOT_PASSWORD: jojo | |
ports: | |
- 3307:3006 | |
volumes: | |
- db-data:/var/lib/mysql/ | |
networks: | |
- docker-db | |
phpmyadmin: | |
depends_on: | |
- mysql | |
links: | |
- mysql | |
image: phpmyadmin/phpmyadmin:latest | |
container_name: phpmyadmin | |
environment: | |
PMA_DB_HOST: mysql:3306 | |
MYSQL_ROOT_PASSWORD: jojo | |
restart: always | |
ports: | |
- 8888:80 | |
networks: | |
- docker-db | |
networks: | |
docker-db: | |
volumes: | |
db-data: {} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment