Created
May 4, 2019 20:33
-
-
Save tloriato/9e004ebdccd40b03e3d322909d5cd97d to your computer and use it in GitHub Desktop.
This file contains hidden or 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: '2' | |
services: | |
# basenode: | |
# build: ./base | |
# stdin_open: true | |
# tty: true | |
mysqldb: | |
image: mysql:5.7 | |
restart: always | |
ports: | |
# <Port exposed> : < MySQL Port running inside container> | |
- '5306:3306' | |
expose: | |
# Opens port 3306 on the container | |
- '3306' | |
environment: | |
MYSQL_DATABASE: 'abe' | |
# So you don't have to use root, but you can if you like | |
MYSQL_USER: 'abe' | |
# You can use whatever password you like | |
MYSQL_PASSWORD: 'PASSWORD' | |
# Password for root access | |
MYSQL_ROOT_PASSWORD: 'PASSWORD' | |
# Where our data will be persisted | |
# 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