Skip to content

Instantly share code, notes, and snippets.

@ryansorensen
Created December 7, 2020 18:20
Show Gist options
  • Save ryansorensen/d0365a686b8570bc898c880bb3b3dac8 to your computer and use it in GitHub Desktop.
Save ryansorensen/d0365a686b8570bc898c880bb3b3dac8 to your computer and use it in GitHub Desktop.
Pivotal / postfacto docker-compose
version: "3.3"
services:
postfacto:
# restart: always
image: postfacto/postfacto:latest
container_name: postfacto
# note: this pid is preventing the container from being restarted sometimes.
# current fix is to docker -rm postfacto && docker-compose up -d postfacto
command: rm /postfacto/tmp/pids/server.pid
ports:
- 9002:3000
environment:
- RAILS_ENV=development
- SECRET_KEY_BASE=<YOUR KEY HERE>
volumes:
- ./postfacto_data/config:/postfacto/config
- ./postfacto_data/db:/postfacto/db
# postfacto
server {
listen 80;
listen [::]:80;
server_name retro.company.io;
access_log /var/log/nginx/postfacto.log;
charset utf-8;
location / {
proxy_pass http://localhost:9002/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
@ryansorensen
Copy link
Author

Setup for running postfacto in docker behind an NGINX proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment