Skip to content

Instantly share code, notes, and snippets.

@daniel-butler
Created February 13, 2020 14:07
Show Gist options
  • Save daniel-butler/139592d4424d191924ecec7cdf5e0ef1 to your computer and use it in GitHub Desktop.
Save daniel-butler/139592d4424d191924ecec7cdf5e0ef1 to your computer and use it in GitHub Desktop.
Electronic Payments docker-compose file
version: "3"
services:
app:
build:
context: .
dockerfile: deploy/app/Dockerfile
depends_on:
- mailhog
- selenium-hub
environment:
- EMAIL_HOST=mailhog
- FLASK_APP=disbursement.http_api.py
- FLASK_ENV=development
- USE_AUTH=False
- USE_DOT_ENV_FILE=False
- CI=True
- BATCH_LOAD_FILE_SAVE_LOCATION=/tmp
- CONNECT_REMITTANCE_HOT_FOLDER=/tmp
- IMPORT_JE_SAVE_LOCATION=/tmp
volumes:
- ./src:/src
- ./tests:/tests
ports:
- "5000:5000"
- "5050:5050"
stdin_open: true
command: bash -c "alembic upgrade head && flask run --host 0.0.0.0"
mailhog:
image: mailhog/mailhog
expose:
- "1025"
- "8025"
ports:
- "11025:1025"
- "18025:8025"
selenium-hub:
restart: always
image: selenium/hub:latest
ports:
- "4444:4444"
selenium-chrome:
restart: always
image: selenium/node-chrome-debug
stdin_open: true
links:
- selenium-hub:hub
environment:
- HUB_HOST=selenium-hub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment