-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public Gateway Docker Compose ? #2555
Comments
Hi @wedowhateverwewant - You're right - one needs to be added. Until I get out an official file, here is the one I've used locally for development if it helps. For anyone else reading - two items of note:
dc-gateway-complete.ymlservices:
postgres:
image: docker.io/postgres:15
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: passwordpusher_user
POSTGRES_PASSWORD: passwordpusher_passwd
POSTGRES_DB: passwordpusher_db
pwpush:
image: docker.io/pglombardo/pwpush:latest
environment:
DATABASE_URL: 'postgres://passwordpusher_user:passwordpusher_passwd@postgres:5432/passwordpusher_db'
# Apply the same settings here as in gateway
ports:
- "5100:5100"
depends_on:
- postgres
links:
- postgres:postgres
gateway:
image: docker.io/pglombardo/pwpush-public-gateway:latest
environment:
DATABASE_URL: 'postgres://passwordpusher_user:passwordpusher_passwd@postgres:5432/passwordpusher_db'
PWP__OVERRIDE_BASE_URL: 'https://pwp.mycompany.org'
# Apply the same settings here as in pwpush
ports:
- "5101:5100"
depends_on:
- postgres
- pwpush
links:
- postgres:postgres
#
# You can set environment variables here, or in a .env file. See:
# https://docs.docker.com/compose/environment-variables/
#
# Password Pusher provides an example Docker environment file:
# https://github.com/pglombardo/PasswordPusher/tree/master/containers/docker/pwpush-docker-env-file
#
# See also the Password Pusher Configuration documentation
# https://docs.pwpush.com/docs/config-strategies/
#
# Uncomment the following lines to set environment variables and add your own.
# environment:
# PWP__PW__EXPIRE_AFTER_DAYS_DEFAULT: "1"
# PWP__PW__EXPIRE_AFTER_VIEWS_MIN: "1"
# PWP__PW__RETRIEVAL_STEP_DEFAULT: "true"
#
# Uncomment the following lines to mount a volume.
# volumes:
# # Example of a persistent volume for the storage directory (file uploads)
# - /path/to/directory:/opt/PasswordPusher/storage:rw
#
# Or you could override a single file in the container with a bind mount:
# volumes:
# - type: bind
# source: /path/to/my/custom/settings.yml
# target: /opt/PasswordPusher/config/settings.yml
#
# To customise the application via configuration file, see settings.yml:
# https://github.com/pglombardo/PasswordPusher/blob/master/config/settings.yml
#
# Then you can use the above bind mount to overlay the file into the container on boot. |
Note - Caddy should be added to this compose for SSL termination - maybe two instances. 1 for each. |
Hi, This is my docker-compose file worked and Caddyfile for me :
CaddyFile
|
This is very helpful - thanks @kelock! It's a nice addition with the Caddyfile. |
Checklist
issues
.discussions
.❓ Question
I would like to deploy the pwpush public gateway but in the docs pages I dont see a docker compose, are you able to provide a docker compose for for the public gateway ?
The text was updated successfully, but these errors were encountered: