Last active
March 5, 2022 17:37
-
-
Save bearlike/61736df03d2d4dea3b7f0c6e9bff1b15 to your computer and use it in GitHub Desktop.
Docker stack with Jupyter, MySQL server and PMA configured for quick access.
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.9" | |
services: | |
jupyter: | |
image: jupyter/minimal-notebook | |
container_name: jupyter | |
ports: | |
- "81:8888" | |
volumes: | |
- /home/kk/jupyter/notebooks:/home/jovyan/ | |
environment: | |
JUPYTER_ENABLE_LAB: "yes" | |
command: "start-notebook.sh --NotebookApp.token='' --NotebookApp.password=''" | |
restart: | |
on-failure | |
db: | |
image: mariadb | |
container_name: db | |
hostname: "mysql-server" | |
ports: | |
- "3306:3306" | |
volumes: | |
- /home/user/jupyter/db:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: "0000" | |
MYSQL_DATABASE: "sakila" | |
MYSQL_USER: "user" | |
MYSQL_PASSWORD: "password" | |
restart: | |
on-failure | |
phpmyadmin: | |
container_name: pma | |
image: phpmyadmin/phpmyadmin | |
links: | |
- db | |
environment: | |
PMA_HOST: db | |
PMA_PORT: 3306 | |
PMA_ARBITRARY: 1 | |
ports: | |
- "82:80" | |
restart: | |
on-failure | |
networks: | |
dev-network: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment