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.

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