From e7e67dc4d7b0e21ab8fbf7ef4e3d344b1be74314 Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 29 Jan 2024 19:29:25 +0000 Subject: [PATCH] Update stack.staging.yml --- stack.staging.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/stack.staging.yml b/stack.staging.yml index 5c31331..687c565 100644 --- a/stack.staging.yml +++ b/stack.staging.yml @@ -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