version: "3" services: belcanto_dev: container_name: "belcanto-dev" build: . image: belcanto_web depends_on: - db - redis volumes: - ./belcanto:/app - ./belcanto-images:/app/media/images - ./belcanto-static:/app/static - ./belcanto-banners:/app/banners - ./belcanto-thumbnails-cache:/app/media/cache - ./includes:/app/includes - ./docker_conf/database.py:/app/settings/database.py - ./docker_conf/local_settings.py:/app/local_settings.py environment: REDIS_SERVICE_HOST: "redis" DJANGO_SETTINGS_MODULE: "settings" DJANGO_SPLIT_SETTINGS_MODULE: ${DEV_MODULE} BELCANTO_DEBUG: "on" BELCANTO_DEV: "on" ports: - "8000:8000" restart: "always" db: container_name: "belcanto-mysql" image: mysql:8 command: --default-authentication-plugin=mysql_native_password volumes: - ./mysql-data:/var/lib/mysql - ./belcanto-dump:/docker-entrypoint-initdb.d environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: belcanto restart: "always" redis: image: redis:5 command: redis-server volumes: - ./redis-data:/data restart: "always"