Skip to content

Instantly share code, notes, and snippets.

@akmamun
Last active November 21, 2021 16:07
Show Gist options
  • Select an option

  • Save akmamun/c721a8bd30960f7e08685dd69b77a39e to your computer and use it in GitHub Desktop.

Select an option

Save akmamun/c721a8bd30960f7e08685dd69b77a39e to your computer and use it in GitHub Desktop.

Revisions

  1. akmamun revised this gist Nov 21, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ version: "3"
    services:
    server:
    container_name: django_app
    build: .
    build: . # from Dockerfile or image name
    command: gunicorn core.wsgi:application --bind 0.0.0.0:8001
    # ports:
    # - 8000:8000
  2. akmamun created this gist Nov 21, 2021.
    10 changes: 10 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    version: "3"

    services:
    server:
    container_name: django_app
    build: .
    command: gunicorn core.wsgi:application --bind 0.0.0.0:8001
    # ports:
    # - 8000:8000
    network_mode: host