Skip to content

Instantly share code, notes, and snippets.

@marcelcaraciolo
Created February 15, 2022 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelcaraciolo/f9756627e036efc59b035bd05999c314 to your computer and use it in GitHub Desktop.
Save marcelcaraciolo/f9756627e036efc59b035bd05999c314 to your computer and use it in GitHub Desktop.
Geninfo Docker-Compose Demo YAML File
version: "2"
services:
web:
build: .
#command: python3 manage.py runserver 0.0.0.0:8000
command: bash -c "pip install -r requirements.txt && gunicorn geninfo.wsgi:application --bind 0.0.0.0:8000"
volumes:
- .:/usr/src/
expose:
- 8000
env_file: .env
depends_on:
- db
db:
image: postgres:13
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file: .env-db
ports:
- "5432:5432"
redis:
image: redis:alpine
ports:
- "6379:6379"
nginx:
build: ./nginx
ports:
- "8000:80"
depends_on:
- web
mailhog: # service for faking a SMTP server
image: mailhog/mailhog
ports:
- '1025:1025' # smtp server
- '8025:8025' # web ui
volumes:
postgres_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment