Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker support #3

Open
6 tasks
kbond opened this issue Sep 25, 2022 · 1 comment
Open
6 tasks

Docker support #3

kbond opened this issue Sep 25, 2022 · 1 comment

Comments

@kbond
Copy link
Member

kbond commented Sep 25, 2022

  • during init, ask if wanting to use docker
  • ask MySQL version
  • Configure docker-compose.yml
  • phpmyadmin command runs docker compose up -d before starting
  • phpmyadmin command runs docker compose down after stopping
  • phpmyadmin mysql to run interactive MySQL command
@kbond
Copy link
Member Author

kbond commented Sep 27, 2022

# docker-compose.yml
version: '3'
services:
  mysql:
    image: mysql:5.7 # customize version
    ports:
      - 3306:3306 # customize host port
    volumes:
      - ./data:/var/lib/mysql # customize host dir
    environment:
      MYSQL_ROOT_PASSWORD: 1234

Run mysql client in running container: docker compose exec mysql mysql -p1234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant