diff --git a/docker-compose.env b/docker-compose.env index 46a5e0d..c0c2273 100644 --- a/docker-compose.env +++ b/docker-compose.env @@ -17,4 +17,6 @@ WEBHOOK_ORGANIZER_URL=https://Slack.webhook.url WEBHOOK_PUBLIC_URL=https://Slack.webhook.url EMAIL_CERTSTAMP_PATH=/app/data/path.to.stamp.image.png RECAPTCHA_PUBLIC_KEY=your.recaptcha.pubkey -RECAPTCHA_PRIVATE_KEY=your.recaptcha.privkey \ No newline at end of file +RECAPTCHA_PRIVATE_KEY=your.recaptcha.privkey +POSTGRES_PASSWORD=your.db.password +DB_PASS=your.db.password \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 58edcf6..6578fb1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,7 +11,6 @@ services: environment: - DB_NAME=kiosk - DB_USER=kioskuser - - DB_PASS=your.db.password - DB_HOST=postgres - DB_PORT=5432 - CELERY_BROKER_URL=redis://redis:6379/0 @@ -21,6 +20,7 @@ services: - postgres worker: image: ghcr.io/ubuntu-kr/ubuntu-kr-qr-kiosk-admin:a73f5bf57fbb9577690c502a2b9c325c9bf62958 + command: celery -A kioskadmin worker -l INFO volumes: - ./data:/app/data - ./static:/app/static @@ -29,7 +29,6 @@ services: environment: - DB_NAME=kiosk - DB_USER=kioskuser - - DB_PASS=your.db.password - DB_HOST=postgres - DB_PORT=5432 - CELERY_BROKER_URL=redis://redis:6379/0 @@ -45,10 +44,10 @@ services: postgres: image: postgres environment: - - POSTGRES_PASSWORD=your.db.password - POSTGRES_USER=kioskuser - POSTGRES_DB=kiosk - PGDATA=/var/lib/postgresql/data/pgdata + env_file: "docker-compose.env" volumes: - ./data/pgdata:/var/lib/postgresql/data/pgdata caddy: