diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/docker-compose.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3949f56..f9b89e5 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -12,11 +12,11 @@ x-takahe-common: image: takahe:latest environment: - TAKAHE_DATABASE_URL: "postgres://postgres:insecure_password@db/takahe" - TAKAHE_DEBUG: true + TAKAHE_DATABASE_SERVER: "postgres://postgres:insecure_password@db/takahe" + TAKAHE_DEBUG: "true" TAKAHE_SECRET_KEY: "insecure_secret" TAKAHE_CSRF_TRUSTED_ORIGINS: '["http://127.0.0.1:8000", "https://127.0.0.1:8000"]' - TAKAHE_USE_PROXY_HEADERS: true + TAKAHE_USE_PROXY_HEADERS: "true" TAKAHE_EMAIL_BACKEND: "console://console" TAKAHE_MAIN_DOMAIN: "example.com" TAKAHE_ENVIRONMENT: "development" @@ -31,7 +31,7 @@ x-takahe-common: services: db: - image: postgres:15-alpine + image: docker.io/postgres:15-alpine healthcheck: test: ['CMD', 'pg_isready', '-U', 'postgres'] volumes: @@ -49,6 +49,10 @@ services: ports: - "8000:8000" + stator: + <<: *takahe-common + command: ["/takahe/manage.py", "runstator"] + setup: <<: *takahe-common command: ["/takahe/manage.py", "migrate"] |