Fix deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se 2021-06-16 11:28:39 +02:00
parent 152610f394
commit 8776b16c4a
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 7 additions and 4 deletions

View File

@ -4,6 +4,7 @@ export MASTODON_API_BASE_URL=social.lumbung.space
export APP_LOG_LEVEL=info export APP_LOG_LEVEL=info
# Deployment # Deployment
export STACK_NAME=publish_lumbung_space
export DOMAIN=publish.lumbung.space export DOMAIN=publish.lumbung.space
export ENTRYPOINT_CONF_VERSION=v1 export ENTRYPOINT_CONF_VERSION=v1
export SECRET_MASTODON_ACCESS_TOKEN=v1 export SECRET_MASTODON_ACCESS_TOKEN=v1

View File

@ -6,6 +6,8 @@ services:
image: "decentral1se/pubspace:latest" image: "decentral1se/pubspace:latest"
environment: environment:
- MASTODON_ACCESS_TOKEN_FILE=/run/secrets/access_token - MASTODON_ACCESS_TOKEN_FILE=/run/secrets/access_token
- MASTODON_API_BASE_URL
- APP_LOG_LEVEL
secrets: secrets:
- access_token - access_token
networks: networks:
@ -23,10 +25,10 @@ services:
order: start-first order: start-first
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.services.kcp.loadbalancer.server.port=8000" - "traefik.http.services.pubspace.loadbalancer.server.port=8000"
- "traefik.http.routers.kcp.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.pubspace.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.kcp.entrypoints=web-secure" - "traefik.http.routers.pubspace.entrypoints=web-secure"
- "traefik.http.routers.kcp.tls.certresolver=production" - "traefik.http.routers.pubspace.tls.certresolver=production"
command: | command: |
uvicorn uvicorn
--host 0.0.0.0 --host 0.0.0.0