Skip to content

Instantly share code, notes, and snippets.

@mrcat323
Created November 18, 2021 06:52
Show Gist options
  • Save mrcat323/b36612c0dc9abd772823ded3f79aaba4 to your computer and use it in GitHub Desktop.
Save mrcat323/b36612c0dc9abd772823ded3f79aaba4 to your computer and use it in GitHub Desktop.
some docker compose
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