Skip to content
Snippets Groups Projects
Commit 2e1648cf authored by jan.bednarik's avatar jan.bednarik
Browse files

Docker compose for local testing

parent 121cc0a2
No related branches found
No related tags found
No related merge requests found
version: '2'
services:
rabbit:
hostname: rabbit
image: rabbitmq:3
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5672:5672"
helios: helios:
image: helios build: .
ports: ports:
- "8666:8000" - "8666:8000"
links:
- rabbit
depends_on:
- rabbit
environment:
DATABASE_URL: "postgres://db:db@host.docker.internal:5432/helios"
CELERY_BROKER_URL: "amqp://admin:mypass@rabbit:5672"
ALLOWED_HOSTS: 127.0.0.1,localhost
URL_HOST: http://localhost:8666
PIRATI_REALM_URL: "http://host.docker.internal:8080/auth/realms/master"
PIRATI_CLIENT_ID: "helios"
PIRATI_CLIENT_SECRET: ""
# localhost only!
OAUTHLIB_INSECURE_TRANSPORT: 1
worker:
build: .
links:
- rabbit
depends_on:
- rabbit
command: bash run_worker.sh
environment: environment:
DATABASE_URL: "postgres://db:db@host.docker.internal:5432/helios" DATABASE_URL: "postgres://db:db@host.docker.internal:5432/helios"
AUTH_ENABLED_AUTH_SYSTEMS: pirateid CELERY_BROKER_URL: "amqp://admin:mypass@rabbit:5672"
AUTH_DEFAULT_AUTH_SYSTEM: pirateid ALLOWED_HOSTS: 127.0.0.1,localhost
ALLOWED_HOSTS: 127.0.0.1
URL_HOST: http://localhost:8666 URL_HOST: http://localhost:8666
SECRET_KEY: "{{ helios_secret_key }}"
EMAIL_HOST: mailgate.pirati.cz
EMAIL_PORT: 587
EMAIL_HOST_USER: XXXXX
EMAIL_HOST_PASSWORD: "{{helios_smtp_password}}"
EMAIL_USE_TLS: 1
DEFAULT_FROM_EMAIL: helios@pirati.cz
DEFAULT_FROM_NAME: Pirati - Helios Voting
DEBUG: 0
WELCOME_MESSAGE: Vítejte na hlasovacím systému České pirátské strany
SITE_TITLE: Hlasovaci system Helios | Ceska piratska strana
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment