You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
640 B
21 lines
640 B
services:
|
|
gs_mysql:
|
|
image: 'mariadb:10.3'
|
|
environment:
|
|
MYSQL_DATABASE: ${DATABASE_NAME}
|
|
# So you don't have to use root, but you can if you like
|
|
MYSQL_USER: ${DATABASE_USERNAME}
|
|
# You can use whatever password you like
|
|
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
|
|
# Password for root access
|
|
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD}
|
|
ports:
|
|
# <Port exposed> : < MySQL Port running inside container>
|
|
- '3307:3306'
|
|
expose:
|
|
# Opens port 3306 on the container
|
|
- '3307'
|
|
# Where our data will be persisted
|
|
volumes:
|
|
- gs_mariadb-master:/var/lib/mysql
|