Created
May 29, 2018 16:39
-
-
Save hipertracker/7ecb390a9e31cf9efe873629961ca0be to your computer and use it in GitHub Desktop.
Docker compose for PTKR
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' | |
| services: | |
| db: | |
| image: postgres | |
| container_name: ptkr_postgres | |
| restart: unless-stopped | |
| environment: | |
| POSTGRES_DB: "${POSTGRES_DB}" | |
| POSTGRES_USER: "${POSTGRES_USER}" | |
| POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" | |
| ports: | |
| - "5999:5432" | |
| volumes: | |
| - ./db:/var/lib/postgresql/data | |
| web: | |
| image: "hipertracker/python3" | |
| container_name: ptkr_web | |
| restart: unless-stopped | |
| command: python3 manage.py runserver 0:8000 | |
| volumes: | |
| - .:/code | |
| ports: | |
| - "8000:8000" | |
| depends_on: | |
| - db | |
| links: | |
| - db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment