Skip to content

Commit

Permalink
Merge pull request #10 from dftba-club/depends-on
Browse files Browse the repository at this point in the history
add depend clause to time the masto services better
  • Loading branch information
nomad-geek authored Jun 8, 2024
2 parents 7d05503 + 4be0fb0 commit 23f5803
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ services:
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
expose:
- '3000/tcp'
depends_on:
- redis
volumes:
- /mnt/dftba-data/mastodon/system:/mastodon/public/system
hostname: "mastoweb"
Expand All @@ -84,6 +86,8 @@ services:
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
expose:
- '4000/tcp'
depends_on:
- redis
hostname: "mastostreaming"
labels:
- "com.centurylinklabs.watchtower.enable=false"
Expand All @@ -102,6 +106,8 @@ services:
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
hostname: "sidekiq"
depends_on:
- redis
redis:
restart: unless-stopped
image: redis:7-alpine
Expand Down

0 comments on commit 23f5803

Please sign in to comment.