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
helios: version: '2'
image: helios
ports: services:
- "8666:8000" rabbit:
environment: hostname: rabbit
DATABASE_URL: "postgres://db:db@host.docker.internal:5432/helios" image: rabbitmq:3
AUTH_ENABLED_AUTH_SYSTEMS: pirateid environment:
AUTH_DEFAULT_AUTH_SYSTEM: pirateid - RABBITMQ_DEFAULT_USER=admin
ALLOWED_HOSTS: 127.0.0.1 - RABBITMQ_DEFAULT_PASS=mypass
URL_HOST: http://localhost:8666 ports:
SECRET_KEY: "{{ helios_secret_key }}" - "5672:5672"
EMAIL_HOST: mailgate.pirati.cz
EMAIL_PORT: 587 helios:
EMAIL_HOST_USER: XXXXX build: .
EMAIL_HOST_PASSWORD: "{{helios_smtp_password}}" ports:
EMAIL_USE_TLS: 1 - "8666:8000"
DEFAULT_FROM_EMAIL: helios@pirati.cz links:
DEFAULT_FROM_NAME: Pirati - Helios Voting - rabbit
DEBUG: 0 depends_on:
WELCOME_MESSAGE: Vítejte na hlasovacím systému České pirátské strany - rabbit
SITE_TITLE: Hlasovaci system Helios | Ceska piratska strana 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:
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment