Update stack.staging.yml

This commit is contained in:
colin 2024-01-29 19:29:25 +00:00
parent d198c60b22
commit e7e67dc4d7
1 changed files with 17 additions and 16 deletions

View File

@ -24,11 +24,11 @@ x-depends_on:
services:
postgres:
image: postgres:15
image: git.nixc.us/colin/glitch:staging-postgres
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- /mnt/tank/persist/nixc.us/glitch/production/db:/var/lib/postgresql/data
- /mnt/tank/persist/nixc.us/glitch/staging/db:/var/lib/postgresql/data
deploy:
replicas: 1
placement:
@ -40,23 +40,24 @@ services:
networks:
- default
redis:
image: redis
image: git.nixc.us/colin/glitch:staging-redis
deploy:
replicas: 1
placement:
constraints:
- node.hostname == macmini1
# - node.hostname == macmini1
- node.labels.mac-rack == true
labels:
- "us.nixc.autodeploy=true"
- "traefik.enable=false"
networks:
- default
web:
image: glitchtip/glitchtip
image: git.nixc.us/colin/glitch:staging-glitch
depends_on: *default-depends_on
environment: *default-environment
volumes:
- /mnt/tank/persist/nixc.us/glitch/production/uploads:/code/uploads
- /mnt/tank/persist/nixc.us/glitch/staging/uploads:/code/uploads
deploy:
replicas: 1
placement:
@ -65,24 +66,24 @@ services:
labels:
- "us.nixc.autodeploy=true"
- "traefik.enable=true"
- "traefik.http.routers.glitch_glitch.tls=true"
- "traefik.http.services.glitch_glitch.loadbalancer.server.port=8000"
- "traefik.http.routers.glitch_glitch.rule=Host(`staging.glitch.nixc.us`)"
- "traefik.http.routers.glitch_glitch.entrypoints=websecure"
- "traefik.http.routers.glitch_glitch.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.glitch_glitch.service=glitch_glitch"
- "traefik.http.routers.staging-glitch_glitch.tls=true"
- "traefik.http.services.staging-glitch_glitch.loadbalancer.server.port=8000"
- "traefik.http.routers.staging-glitch_glitch.rule=Host(`staging.glitch.nixc.us`)"
- "traefik.http.routers.staging-glitch_glitch.entrypoints=websecure"
- "traefik.http.routers.staging-glitch_glitch.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.staging-glitch_glitch.service=staging-glitch_glitch"
- "traefik.docker.network=traefik"
# - 'traefik.http.routers.glitch_glitch.middlewares=authelia@docker'
# - 'traefik.http.routers.staging-glitch_glitch.middlewares=authelia@docker'
networks:
- default
- traefik
worker:
image: glitchtip/glitchtip
image: git.nixc.us/colin/glitch:staging-glitch
command: ./bin/run-celery-with-beat.sh
depends_on: *default-depends_on
environment: *default-environment
volumes:
- /mnt/tank/persist/nixc.us/glitch/production/uploads:/code/uploads
- /mnt/tank/persist/nixc.us/glitch/staging/uploads:/code/uploads
deploy:
replicas: 1
placement:
@ -93,7 +94,7 @@ services:
networks:
- default
migrate:
image: glitchtip/glitchtip
image: git.nixc.us/colin/glitch:staging-glitch
depends_on: *default-depends_on
command: "./manage.py migrate"
environment: *default-environment