Created
October 19, 2021 05:35
-
-
Save iamakaradech/e63800dafdf534ec9f594345b9652390 to your computer and use it in GitHub Desktop.
Basic docker-compose.yml file for mariadb and redis
This file contains 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: | |
db: | |
restart: always | |
image: mariadb | |
container_name: mariadb | |
ports: | |
- "3307:3306" | |
volumes: | |
- ./db/:/var/lib/mysql | |
environment: | |
- MARIADB_ROOT_PASSWORD=secret | |
redis: | |
container_name: redis | |
restart: always | |
image: redis:alpine | |
volumes: | |
- ./redis:/data | |
ports: | |
- "6380:6379" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment