Skip to content

Instantly share code, notes, and snippets.

@danleyb2
Last active October 11, 2021 06:21
Show Gist options
  • Save danleyb2/7263d26b4b59178541fa7656732abfe8 to your computer and use it in GitHub Desktop.
Save danleyb2/7263d26b4b59178541fa7656732abfe8 to your computer and use it in GitHub Desktop.
version: "3.6"
services:
db:
image: platerecognizer/parkpow-postgres
# restart: unless-stopped
volumes:
- /tmp/parkpow-volumes/postgres:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=parkpow
- POSTGRES_USER=parkpow
- POSTGRES_PASSWORD=parkpow
web:
<<: &app-config
image: platerecognizer/parkpow-app
# restart: unless-stopped
volumes:
- /tmp/parkpow-volumes/media:/app/media
- /tmp/parkpow-volumes/app:/app
environment:
- DJANGO_CONFIGURATION=OnPremise
- DJANGO_DATABASE_HOST=db
- DJANGO_DATABASE_PORT=5432
- DJANGO_EMAIL_HOST=localhost
- DJANGO_EMAIL_PORT=25
- DJANGO_EMAIL_HOST_USER=
- DJANGO_EMAIL_HOST_PASSWORD=
- DJANGO_EMAIL_USE_TLS=True
- TOKEN=4805bee1222ce85e0bf72###############
- LICENSE=NSEG#####
depends_on:
- db
- jobq
ports:
- "8000:8000"
jobq:
<<: *app-config
command: >
sh -c "wait-for-it web:8000 --timeout=0 --strict &&
python manage.pyc qcluster"
depends_on:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment