Created
April 4, 2018 21:35
-
-
Save hipertracker/920cbbf54be5779b2cba9284f7e5c9ef to your computer and use it in GitHub Desktop.
Passenger Dockerfile example
This file contains hidden or 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.5" | |
| services: | |
| db: | |
| image: postgres | |
| container_name: homepage_db | |
| restart: always | |
| environment: | |
| POSTGRES_PASSWORD: example | |
| ports: | |
| - "5999:5432" | |
| # volumes: | |
| # - ./db:/var/lib/postgresql/data | |
| web: | |
| image: hipertracker/homepage | |
| container_name: homepage_web | |
| # volumes: | |
| # - ./app:/app | |
| ports: | |
| - "80:80" | |
| depends_on: | |
| - db |
This file contains hidden or 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
| FROM phusion/passenger-full:0.9.29 | |
| ENV HOME /root | |
| CMD ["/sbin/my_init"] | |
| RUN rm -f /etc/service/nginx/down | |
| RUN rm /etc/nginx/sites-enabled/default | |
| ADD webapp.conf /etc/nginx/sites-enabled/webapp.conf | |
| RUN mkdir /home/app/webapp | |
| COPY --chown=app:app . /home/app/webapp | |
| ADD postgres-env.conf /etc/nginx/main.d/postgres-env.conf | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment