Skip to content

Instantly share code, notes, and snippets.

@akmamun
Last active November 21, 2021 16:07
Show Gist options
  • Save akmamun/c721a8bd30960f7e08685dd69b77a39e to your computer and use it in GitHub Desktop.
Save akmamun/c721a8bd30960f7e08685dd69b77a39e to your computer and use it in GitHub Desktop.
Docker Compose Host Mode Container
version: "3"
services:
server:
container_name: django_app
build: . # from Dockerfile or image name
command: gunicorn core.wsgi:application --bind 0.0.0.0:8001
# ports:
# - 8000:8000
network_mode: host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment