diff --git a/.env.sample b/.env.sample index 1d1d6f7..0031883 100644 --- a/.env.sample +++ b/.env.sample @@ -4,6 +4,7 @@ export MASTODON_API_BASE_URL=social.lumbung.space export APP_LOG_LEVEL=info # Deployment +export STACK_NAME=publish_lumbung_space export DOMAIN=publish.lumbung.space export ENTRYPOINT_CONF_VERSION=v1 export SECRET_MASTODON_ACCESS_TOKEN=v1 diff --git a/compose.yml b/compose.yml index 6d42be0..e6253ab 100644 --- a/compose.yml +++ b/compose.yml @@ -6,6 +6,8 @@ services: image: "decentral1se/pubspace:latest" environment: - MASTODON_ACCESS_TOKEN_FILE=/run/secrets/access_token + - MASTODON_API_BASE_URL + - APP_LOG_LEVEL secrets: - access_token networks: @@ -23,10 +25,10 @@ services: order: start-first labels: - "traefik.enable=true" - - "traefik.http.services.kcp.loadbalancer.server.port=8000" - - "traefik.http.routers.kcp.rule=Host(`${DOMAIN}`)" - - "traefik.http.routers.kcp.entrypoints=web-secure" - - "traefik.http.routers.kcp.tls.certresolver=production" + - "traefik.http.services.pubspace.loadbalancer.server.port=8000" + - "traefik.http.routers.pubspace.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.pubspace.entrypoints=web-secure" + - "traefik.http.routers.pubspace.tls.certresolver=production" command: | uvicorn --host 0.0.0.0