Update stack.staging.yml
This commit is contained in:
parent
5a96a197bc
commit
2c1f68ee62
|
@ -1,114 +1,30 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
x-environment:
|
|
||||||
&default-environment
|
|
||||||
REDIS_HOST: glitch_redis
|
|
||||||
DATABASE_URL: postgres://postgres:postgres@glitch_postgres:5432/postgres
|
|
||||||
SECRET_KEY: 4f99181d528f201c16806b34b980791f9a99570d645910dacfe31198b503ea2f # best to run openssl rand -hex 32
|
|
||||||
PORT: 8000
|
|
||||||
EMAIL_URL: smtp://glitch@nixc.us:G2BeHLDezu2Eg8x5aDy8MZ3RTLJoP6xJyvwDnFDMCrFxe7AWW5mAst96zvkcDq3R@box.p.nixc.us:465 # https://glitchtip.com/documentation/install#configuration
|
|
||||||
GLITCHTIP_DOMAIN: https://staging.glitch.nixc.us # Change this to your domain
|
|
||||||
DEFAULT_FROM_EMAIL: glitch@nixc.us # Change this to your email
|
|
||||||
CELERY_WORKER_CONCURRENCY: 2 # Set to 2 to prevent excessive memory usage. Change it or remove to set it to the number of cpu cores.
|
|
||||||
## custom config
|
|
||||||
GLITCHTIP_MAX_EVENT_LIFE_DAYS: 30
|
|
||||||
GLITCHTIP_MAX_TRANSACTION_EVENT_LIFE_DAYS: 5
|
|
||||||
GLITCHTIP_MAX_FILE_LIFE_DAYS: 5
|
|
||||||
ENABLE_USER_REGISTRATION: "true"
|
|
||||||
ENABLE_ORGANIZATION_CREATION: "true"
|
|
||||||
## gitea api b994dd8dd3162aa79db17bdb893a7c9271c63369
|
|
||||||
# SOCIALACCOUNT_PROVIDERS_gitea_GITEA_URL: "https://git.nixc.us/"
|
|
||||||
x-depends_on:
|
|
||||||
&default-depends_on
|
|
||||||
- postgres
|
|
||||||
- redis
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
ntfy:
|
||||||
image: git.nixc.us/colin/glitch:staging-postgres
|
image: git.nixc.us/colin/ntfy:staging
|
||||||
environment:
|
|
||||||
POSTGRES_HOST_AUTH_METHOD: "trust"
|
|
||||||
volumes:
|
|
||||||
- /mnt/tank/persist/nixc.us/glitch/staging/db:/var/lib/postgresql/data
|
|
||||||
deploy:
|
|
||||||
replicas: 1
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.hostname == macmini1
|
|
||||||
labels:
|
|
||||||
- "us.nixc.autodeploy=true"
|
|
||||||
- "traefik.enable=false"
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
redis:
|
|
||||||
image: git.nixc.us/colin/glitch:staging-redis
|
|
||||||
deploy:
|
|
||||||
replicas: 1
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
# - node.hostname == macmini1
|
|
||||||
- node.labels.mac-rack == true
|
|
||||||
labels:
|
|
||||||
- "us.nixc.autodeploy=true"
|
|
||||||
- "traefik.enable=false"
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
web:
|
|
||||||
image: git.nixc.us/colin/glitch:staging-glitch
|
|
||||||
depends_on: *default-depends_on
|
|
||||||
environment: *default-environment
|
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/persist/nixc.us/glitch/staging/uploads:/code/uploads
|
- /mnt/tank/persist/nixc.us/ntfy/staging/data:/data
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.hostname == macmini1
|
- node.hostname == macmini14
|
||||||
labels:
|
labels:
|
||||||
- "us.nixc.autodeploy=true"
|
- "us.nixc.autodeploy=true"
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.staging-glitch_glitch.tls=true"
|
- "traefik.http.routers.staging-ntfy_ntfy.tls=true"
|
||||||
- "traefik.http.services.staging-glitch_glitch.loadbalancer.server.port=8000"
|
- "traefik.http.services.staging-ntfy_ntfy.loadbalancer.server.port=80"
|
||||||
- "traefik.http.routers.staging-glitch_glitch.rule=Host(`staging.glitch.nixc.us`)"
|
- "traefik.http.routers.staging-ntfy_ntfy.rule=Host(`staging.ntfy.nixc.us`)"
|
||||||
- "traefik.http.routers.staging-glitch_glitch.entrypoints=websecure"
|
- "traefik.http.routers.staging-ntfy_ntfy.entrypoints=websecure"
|
||||||
- "traefik.http.routers.staging-glitch_glitch.tls.certresolver=letsencryptresolver"
|
- "traefik.http.routers.staging-ntfy_ntfy.tls.certresolver=letsencryptresolver"
|
||||||
- "traefik.http.routers.staging-glitch_glitch.service=staging-glitch_glitch"
|
- "traefik.http.routers.staging-ntfy_ntfy.service=staging-ntfy_ntfy"
|
||||||
- "traefik.docker.network=traefik"
|
- "traefik.docker.network=traefik"
|
||||||
# - 'traefik.http.routers.staging-glitch_glitch.middlewares=authelia@docker'
|
# - 'traefik.http.routers.staging-ntfy_ntfy.middlewares=authelia@docker'
|
||||||
networks:
|
networks:
|
||||||
- default
|
|
||||||
- traefik
|
- traefik
|
||||||
worker:
|
environment:
|
||||||
image: git.nixc.us/colin/glitch:staging-glitch
|
- NTFY_LISTEN_ADDR=0.0.0.0:80
|
||||||
command: ./bin/run-celery-with-beat.sh
|
- NTFY_DATA_DIR=/data
|
||||||
depends_on: *default-depends_on
|
|
||||||
environment: *default-environment
|
|
||||||
volumes:
|
|
||||||
- /mnt/tank/persist/nixc.us/glitch/staging/uploads:/code/uploads
|
|
||||||
deploy:
|
|
||||||
replicas: 1
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.hostname == ingress.nixc.us
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=false"
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
migrate:
|
|
||||||
image: git.nixc.us/colin/glitch:staging-glitch
|
|
||||||
depends_on: *default-depends_on
|
|
||||||
command: "./manage.py migrate"
|
|
||||||
environment: *default-environment
|
|
||||||
deploy:
|
|
||||||
replicas: 1
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.hostname == macmini1
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=false"
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
default:
|
|
||||||
external: false
|
|
Loading…
Reference in New Issue