Skip to content

Conversation

@charsbar
Copy link
Collaborator

@charsbar charsbar commented Apr 27, 2023

This PR adds docker-compose files to help develop PAUSE. It is not to suggest changing how to deploy PAUSE or anything else. It runs paused, plack app behind nginx, mailhog to see emails that PAUSE sends. It doesn't run cron scripts (at least for now). No FTP nor Rsync servers. TESTADMIN and TESTUSER accounts (the passwords are both "test") are predefined.

Usage:

$ docker-compose up --build

to start the servers. CTRL+C should stop them.

$ docker system prune

clears stuff when you find something wrong.

$ sudo rm -rf ./docker/tmp/*

if you also need to clear uploaded stuff and logs (everything under /home/ftp/).

$ docker-compose exec app bash

to enter the app service, where you can run any script under cron, bin, or wherever (eg. you'll need to enter here to run cron/mldistwatch after you reindex).

Visit http://(local pause host):8025/ to see emails pause sent.

@charsbar
Copy link
Collaborator Author

charsbar commented Apr 27, 2023

It may be better to rename files under docker/gnupg and docker/nginx/ssl and rename in docker/app/docker-entrypoint.sh to avoid security alert.

@rjbs
Copy link
Collaborator

rjbs commented Apr 27, 2023

This is exciting, and might save me from doing a bunch of work that I wasn't sure how I'd do! I will ask you a bunch of questions…

@charsbar
Copy link
Collaborator Author

Seems better to add cron/cron-daily and cron/mldistwatch to crontab

@wolfsage
Copy link
Collaborator

This is awesome, I think it'd be nice to add a README which contains the info above:

TESTADMIN and TESTUSER accounts (the passwords are both "test") are predefined.

Usage:

$ docker-compose up --build

to start the servers. CTRL+C should stop them.

$ docker system prune

clears stuff when you find something wrong.

$ docker-compose exec app bash

to enter the app service, where you can run any script under cron, bin, or wherever (eg. you'll need to enter here to run cron/mldistwatch after you reindex).

Visit http://(local pause host):8025/ to see emails pause sent.

@charsbar
Copy link
Collaborator Author

@wolfsage thanks, that's a good idea. I'll update README after everything is settled.

@wolfsage
Copy link
Collaborator

(After talking in person)

We should close this MR and Rik and I will work against https://github.com/wolfsage/pause/tree/docker_compose until it's ready and then we'll open a final MR for review.

If anyone wants to join in, clone my repo and open merge requests against my fork and the docker_compose branch

Thanks!

@charsbar
Copy link
Collaborator Author

@wolfsage could you cherrypick a few changes after your fork (or re-fork mine)?

@charsbar
Copy link
Collaborator Author

@wolfsage wolfsage#1 is made. I close this PR.

@charsbar
Copy link
Collaborator Author

Latest version is https://github.com/wolfsage/pause/tree/docker-compose

You need to copy ./docker/env.test and modify and rename it as ./.env .

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants