Skip to content

Instantly share code, notes, and snippets.

@iamakaradech
Created October 19, 2021 05:35
Show Gist options
  • Save iamakaradech/e63800dafdf534ec9f594345b9652390 to your computer and use it in GitHub Desktop.
Save iamakaradech/e63800dafdf534ec9f594345b9652390 to your computer and use it in GitHub Desktop.
Basic docker-compose.yml file for mariadb and redis
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