--- services: registry: image: registry:latest container_name: registry networks: public: ipv4_address: 192.168.240.45 volumes: - "${DOCKER_STORAGE_PATH}/registry/data:/var/lib/registry" - "${DOCKER_STORAGE_PATH}/registry/config.yml:/etc/docker/registry/config.yml" profiles: - base restart: unless-stopped