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.
19 lines
521 B
19 lines
521 B
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
|
|
|