Skip to content

Commit

Permalink
feat: additional shepherd config
Browse files Browse the repository at this point in the history
  • Loading branch information
thenick775 committed Nov 13, 2024
1 parent 2dd8f8b commit 2482d20
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/**/swag
/**/.env
/**/.env.swarm
/**/shepherd-registries
/**/certs/**
/**/*.log
/**/authapi
Expand Down
13 changes: 12 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@ x-restart-policy: &default-restart-policy
window: 30s

services:
gba-postgres:
deploy:
restart_policy: *default-restart-policy
labels:
- shepherd.auth.config=github
gba-auth-server:
depends_on:
- gba-postgres
deploy:
restart_policy: *default-restart-policy
labels:
- shepherd.auth.config=github
gba-admin-server:
depends_on:
- gba-postgres
deploy:
restart_policy: *default-restart-policy
labels:
- shepherd.auth.config=github
gba-webserver:
depends_on:
- gba-auth-server
- gba-admin-server
deploy:
restart_policy: *default-restart-policy
restart_policy: *default-restart-policy
labels:
- shepherd.auth.config=github
12 changes: 10 additions & 2 deletions shepherd/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ services:
constraints:
- node.role == manager
environment:
- IGNORELIST_SERVICES=shepherd
- IMAGE_AUTOCLEAN_LIMIT=2
- IGNORELIST_SERVICES=gbajs3_shepherd
- IMAGE_AUTOCLEAN_LIMIT=1
- ROLLBACK_ON_FAILURE=true
- WITH_REGISTRY_AUTH=true
- REGISTRIES_FILE=/var/run/secrets/shepherd-registries
- VERBOSE=true
restart: always
secrets:
- shepherd-registries
secrets:
shepherd-registries:
file: ./shepherd/shepherd-registries

0 comments on commit 2482d20

Please sign in to comment.