Created
December 7, 2020 18:20
-
-
Save ryansorensen/d0365a686b8570bc898c880bb3b3dac8 to your computer and use it in GitHub Desktop.
Pivotal / postfacto docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup for running postfacto in docker behind an NGINX proxy