Skip to content

Instantly share code, notes, and snippets.

@Nick0603
Created November 18, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nick0603/cbacd49ccdd58ce7315d0d63475f62e9 to your computer and use it in GitHub Desktop.
Save Nick0603/cbacd49ccdd58ce7315d0d63475f62e9 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: ${DB_DATABASE:-werewolves}
MYSQL_USER: ${DB_USERNAME:-user}
MYSQL_PASSWORD: ${DB_PASSWORD:-password}
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- my-db:/var/lib/mysql
volumes:
my-db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment