Skip to content

Instantly share code, notes, and snippets.

@xtha
Forked from staaldraad/docker-compose.yml
Created February 27, 2019 02:05
Show Gist options
  • Save xtha/479e7e3c558b2ec4b58a9aa82099373b to your computer and use it in GitHub Desktop.
Save xtha/479e7e3c558b2ec4b58a9aa82099373b 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