Skip to content
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

Add docker-compose.yml #2

Open
jsfan opened this issue Apr 16, 2020 · 3 comments
Open

Add docker-compose.yml #2

jsfan opened this issue Apr 16, 2020 · 3 comments

Comments

@jsfan
Copy link
Owner

jsfan commented Apr 16, 2020

The docker-compose.yml file should configure a stack which contains the app, an NginX reverse proxy and a PostgreSQL server.

The database needs to be kept on a volume mounted from the host system's disk.
Ideally, the NginX reverse proxy should be configured for HTTPS and read its key and certificate from a mount on the host system. This may require another Dockerfile and possibly a build script to build Docker images and create a self-signed key pair by default.

The docker-compose.yml should be suitable for the docker stack command rather than docker-compose.

@jsfan
Copy link
Owner Author

jsfan commented Apr 18, 2020

@jsfan
Copy link
Owner Author

jsfan commented Apr 18, 2020

@jsfan jsfan self-assigned this Apr 19, 2020
@jsfan jsfan moved this from To do to In progress in Post Hackathon Sprint 1 (ends TBD) Apr 29, 2020
@jsfan
Copy link
Owner Author

jsfan commented Apr 29, 2020

I'll leave this open for now. The init script doesn't bring up the app container. However, without the app container Nginx will flap and the certificate never issued.

It's possible to work around that to run the init script until it fails, bring up the stack with the self-signed certificate and then re-run the init script while the stack is up.

@Ashar67 Ashar67 moved this from In progress to Done in Post Hackathon Sprint 1 (ends TBD) Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant