Skip to content

Instantly share code, notes, and snippets.

@mjc-gh
Forked from nicoavila/docker-compose.yml
Last active February 28, 2023 16:48
Show Gist options
  • Save mjc-gh/a2ef3e533cd295a90eb147aae9554409 to your computer and use it in GitHub Desktop.
Save mjc-gh/a2ef3e533cd295a90eb147aae9554409 to your computer and use it in GitHub Desktop.
Docker Compose file for a MySQL 5.7 container
version: '3.3'
services:
database:
image: mysql:5.7
container_name: mysql
restart: always
environment:
MYSQL_DATABASE: 'ThriveFantasy'
MYSQL_USER: 'tf'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_ROOT_HOST: '%'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- tf_db_data:/var/lib/mysql
volumes:
tf_db_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment