Skip to content

Instantly share code, notes, and snippets.

@staaldraad
Created June 12, 2017 09:17
Show Gist options
  • Save staaldraad/7305526e2d6c2975067fa2b5e7e52196 to your computer and use it in GitHub Desktop.
Save staaldraad/7305526e2d6c2975067fa2b5e7e52196 to your computer and use it in GitHub Desktop.
A docker-compose yml to use with Doorman and osquery
version: '2'
services:
doorman:
image: doorman
container_name: "doorman"
build:
context: ./doorman
dockerfile: Dockerfile_doorman
links:
- doormanpostgres
expose:
- "5000"
ports:
- "0.0.0.0:5000:5000"
depends_on:
- doormanpostgres
environment:
- DEBUG=true
- ENV=prod
- DOORMAN_ENROLL_SECRET=foo
- DOORMAN_SECRET_KEY=secret-key
- POSTGRES_USER=doorman
- POSTGRES_PASSWORD=prprprpr
- POSTGRES_PORT=doormanpostgres:5432
doormanpostgres:
image: postgres:alpine
container_name: "doorman-postgres"
volumes:
- postgresdata:/var/lib/postgresql/data
expose:
- 5432
environment:
- POSTGRES_USER=doorman
- POSTGRES_PASSWORD=prprprpr
volumes:
postgresdata:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment