parameterize directories
This commit is contained in:
parent
5bf6d7acbc
commit
cd17ed372c
21 changed files with 88 additions and 66 deletions
|
@ -9,7 +9,7 @@ services:
|
|||
healthcheck:
|
||||
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
||||
volumes:
|
||||
- /data/mastodon/postgres14:/var/lib/postgresql/data
|
||||
- {{ data_dir }}/postgres14:/var/lib/postgresql/data
|
||||
environment:
|
||||
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
||||
- 'POSTGRES_PASSWORD={{ mastodon_postgres_password }}'
|
||||
|
@ -24,7 +24,7 @@ services:
|
|||
healthcheck:
|
||||
test: ['CMD', 'redis-cli', 'ping']
|
||||
volumes:
|
||||
- /data/mastodon/redis:/data
|
||||
- {{ data_dir }}/redis:/data
|
||||
environment:
|
||||
- 'REDIS_PASSWORD={{ mastodon_redis_password }}'
|
||||
|
||||
|
@ -46,7 +46,7 @@ services:
|
|||
- db
|
||||
- redis
|
||||
volumes:
|
||||
- /data/mastodon/public/system:/mastodon/public/system
|
||||
- {{ data_dir }}/public/system:/mastodon/public/system
|
||||
labels:
|
||||
- traefik.http.routers.mastodon.entrypoints=websecure
|
||||
- traefik.http.routers.mastodon.rule=Host(`social.pizzapim.nl`)
|
||||
|
@ -91,7 +91,7 @@ services:
|
|||
networks:
|
||||
- default
|
||||
volumes:
|
||||
- /data/mastodon/public/system:/mastodon/public/system
|
||||
- {{ data_dir }}/public/system:/mastodon/public/system
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
|
||||
|
||||
|
|
Reference in a new issue