-
-
Save allinonedashboard/a30a63e44f6ce8df8e65a110cbf97d65 to your computer and use it in GitHub Desktop.
mysql-redis-docker-compose.yml
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: '2.3' | |
services: | |
mysql: | |
restart: always | |
image: mariadb:10.3 | |
container_name: mariadb | |
ports: | |
- "3307:3306" | |
volumes: | |
- ./store/:/var/lib/mysql | |
mem_limit: 512m | |
networks: | |
- mysqlnetwork | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
- MYSQL_DATABASE=local | |
- MYSQL_USER=root | |
- MYSQL_PASSWORD=root | |
- PMA_ARBITRARY=1 | |
- PMA_HOST=mysql | |
- PMA_PORT=3306 | |
- PMA_USER=root | |
- PMA_PASSWORD=root | |
mysql-admin: | |
restart: always | |
image: phpmyadmin/phpmyadmin | |
container_name: mariadb-phpmyadmin | |
ports: | |
- "8001:80" | |
mem_limit: 512m | |
networks: | |
- mysqlnetwork | |
depends_on: | |
- mysql | |
environment: | |
PMA_HOST: mysql | |
PMA_PORT: 3306 | |
PMA_USER: root | |
PMA_PASSWORD: root | |
redis-server: | |
restart: always | |
image: redis:4.0 | |
container_name: redis-server | |
command: /bin/bash -c 'redis-server --appendonly yes' | |
sysctls: | |
- net.core.somaxconn=65535 | |
ports: | |
- "6380:6379" | |
volumes: | |
- ./redis:/data | |
mem_limit: 96m | |
networks: | |
- mysqlnetwork | |
volumes: | |
mysql: | |
driver: local | |
redis: | |
driver: local | |
networks: | |
mysqlnetwork: | |
driver: bridge | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment