Skip to content

Instantly share code, notes, and snippets.

@RobertoSchneiders
Created December 12, 2020 19:52
Show Gist options
  • Save RobertoSchneiders/501530c4b44a84bc9e19575251b82064 to your computer and use it in GitHub Desktop.
Save RobertoSchneiders/501530c4b44a84bc9e19575251b82064 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
mysql_5_7:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: "db"
volumes:
- /home/roberto/dev/docker/volumes/mysql:/var/lib/mysql
ports:
- '3306:3306'
mysql_5_7_in_memory:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: "db"
tmpfs:
- /var/lib/mysql:rw,noexec
- /tmp:rw,noexec
ports:
- '3308:3306'
redis:
image: redis
restart: always
ports:
- '6379:6379'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment