Compare commits
7 Commits
1.1.8+v4.0
...
main
Author | SHA1 | Date |
---|---|---|
3wc | b8e2929bf2 | |
decentral1se | 18a956d084 | |
Sarma | 7525e5826c | |
decentral1se | 2ca92dd55f | |
3wc | 080fcd7a2d | |
3wc | 556d73cce8 | |
3wc | f6c2527182 |
|
@ -1,6 +1,6 @@
|
|||
TYPE=hometown
|
||||
|
||||
DOMAIN={{ .Domain }}
|
||||
DOMAIN=hometown.example.com
|
||||
# Enables WEB_DOMAIN if set (FOR FUTURE USE)
|
||||
# USER_DOMAIN=
|
||||
|
||||
|
|
18
compose.yml
18
compose.yml
|
@ -3,8 +3,8 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
app:
|
||||
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.0.15-hometown-1.1.1
|
||||
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
||||
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.2.10-hometown-1.1.1
|
||||
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rake db:migrate; bundle exec rails s -p 3000"
|
||||
networks: &bothNetworks
|
||||
- proxy
|
||||
- internal_network
|
||||
|
@ -19,7 +19,7 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}_web.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}_web.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}_web.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.1.8+v4.0.15-hometown-1.1.1"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.0.0+v4.2.10-hometown-1.1.1"
|
||||
configs: &configs
|
||||
- source: entrypoint_sh
|
||||
target: /usr/local/bin/entrypoint.sh
|
||||
|
@ -143,7 +143,7 @@ services:
|
|||
- WEB_DOMAIN
|
||||
|
||||
streaming:
|
||||
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.0.15-hometown-1.1.1
|
||||
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.2.10-hometown-1.1.1
|
||||
command: node ./streaming
|
||||
configs: *configs
|
||||
entrypoint: *entrypoint
|
||||
|
@ -189,9 +189,17 @@ services:
|
|||
- POSTGRES_DB=${DB_NAME}
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
|
||||
- POSTGRES_USER=${DB_USER}
|
||||
deploy:
|
||||
labels:
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.pre-hook=sh -c \"mkdir -p /var/backup/hometown; /usr/local/bin/pg_dump -Fc -U ${DB_USER} ${DB_NAME} > /var/backup/hometown/backupbot.dump\""
|
||||
- "backupbot.backup.path=/var/backup/hometown"
|
||||
- "backupbot.backup.post-hook=rm -f /var/backup/hometown/backupbot.dump"
|
||||
- "backupbot.restore.post-hook=sh -c \"/usr/local/bin/pg_restore -U ${DB_USER} -d ${DB_NAME} -1 /var/backup/hometown/backupbot.dump\""
|
||||
|
||||
|
||||
redis:
|
||||
image: redis:7.2-alpine
|
||||
image: redis:7.4-alpine
|
||||
networks: *internalNetwork
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
|
|
Loading…
Reference in New Issue