diff --git a/.gitignore b/.gitignore index 065adb64..b97847aa 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ /**/swag /**/.env /**/.env.swarm +/**/shepherd-registries /**/certs/** /**/*.log /**/authapi diff --git a/shepherd/docker-compose.yaml b/shepherd/docker-compose.yaml index 8cb096d5..6e01b5d5 100644 --- a/shepherd/docker-compose.yaml +++ b/shepherd/docker-compose.yaml @@ -8,8 +8,18 @@ services: placement: constraints: - node.role == manager + labels: + - shepherd.enable=true + - shepherd.auth.config=github environment: - - IGNORELIST_SERVICES=shepherd + - IGNORELIST_SERVICES=gbajs3_shepherd - IMAGE_AUTOCLEAN_LIMIT=2 - ROLLBACK_ON_FAILURE=true + - WITH_REGISTRY_AUTH=true + - REGISTRIES_FILE=/var/run/secrets/shepherd-registries restart: always + secrets: + - shepherd-registries +secrets: + shepherd-registries: + file: ./shepherd/shepherd-registries