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.
24 lines
480 B
24 lines
480 B
version: "3.8" |
|
name: mysql |
|
services: |
|
base: &base |
|
container_name: ${CONTAINER_NAME}-db |
|
image: mysql:${MYSQL_VERSION} |
|
environment: |
|
- TZ=America/Argentina/Buenos_Aires |
|
restart: always |
|
ports: |
|
- ${MYSQL_PORT}:3306 |
|
volumes: |
|
- ./docker/volumes/data:/var/lib/mysql |
|
- ./docker/volumes/backups:/backups |
|
extra_hosts: |
|
- host.docker.internal:host-gateway |
|
|
|
database: |
|
<<: *base |
|
|
|
dev: |
|
<<: *base |
|
env_file: |
|
- ./.env
|
|
|