services: redis: image: redis:alpine container_name: redis-dbcache restart: unless-stopped db: image: mysql:latest restart: always environment: MYSQL_ROOT_PASSWORD: ${DBPASS} volumes: - db:/var/lib/mysql - ./docker/provision/mysql/init:/docker-entrypoint-initdb.d volumes: db: networks: default: name: nginx-proxy external: true