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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
|
name: ${CONTAINER_NAME:?container name is not defined...}-mysql
|
|
|
|
|
services:
|
|
|
|
|
x-base: &x-base
|
|
|
|
|
container_name: ${CONTAINER_NAME:?container name is not defined...}-db
|
|
|
|
|
image: mysql:${MYSQL_VERSION:-latest}
|
|
|
|
|
restart: ${RESTART:-no}
|
|
|
|
|
ports:
|
|
|
|
|
- ${MYSQL_PORT:-3306}:3306
|
|
|
|
|
volumes:
|
|
|
|
|
- ./docker/volumes/data:/var/lib/mysql
|
|
|
|
|
- ./docker/volumes/backups:/backups
|
|
|
|
|
extra_hosts:
|
|
|
|
|
- host.docker.internal:host-gateway
|
|
|
|
|
database:
|
|
|
|
|
<<: *x-base
|
|
|
|
|
dev:
|
|
|
|
|
<<: *x-base
|
|
|
|
|
env_file:
|
|
|
|
|
- ./.env
|