Skip to content

Instantly share code, notes, and snippets.

@artemboyko43
Last active September 1, 2023 20:42
Show Gist options
  • Save artemboyko43/ac1173925b2f62cd9d57e6416b82bf9c to your computer and use it in GitHub Desktop.
Save artemboyko43/ac1173925b2f62cd9d57e6416b82bf9c to your computer and use it in GitHub Desktop.
Docker Compose Mysql (Mariadb) PHPMyAdmin Mac m1
version: "3.0"
volumes:
db-data:
external: false
services:
db:
image: mariadb:10.4
ports:
- 3306:3306
environment:
MYSQL_DATABASE: db
MYSQL_USER: user
MYSQL_PASSWORD: pass
MYSQL_ROOT_PASSWORD: pass
networks:
- mynet
phpmyadmin:
image: phpmyadmin
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80
networks:
- mynet
depends_on:
- db
networks:
mynet:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment