Skip to content

Commit

Permalink
Add worker command
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jul 21, 2024
1 parent b0da7a9 commit 2103e3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docker-compose.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
RECAPTCHA_PRIVATE_KEY=your.recaptcha.privkey
POSTGRES_PASSWORD=your.db.password
DB_PASS=your.db.password
5 changes: 2 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 2103e3f

Please sign in to comment.