Skip to content
Snippets Groups Projects
Select Git revision
  • a7f1036aefe1f36be3bd9430366810a4ef81c56e
  • master default
  • clement
  • fix_requirements
  • new_signup
  • interface_admin
  • hamza
  • dev
  • test
  • melissa
  • context_sheet
  • sorties_new
  • Seon82-patch-2
  • export_bdd
  • refactor/participation-user-link
15 results

docker-compose.yml

Blame
  • docker-compose.yml 534 B
    version: '3'
    
    services:
    
      # Django web app on Gunicorn WSGI server
      gunicorn:
        build: .
        container_name: django_01
        expose:
          - "8000"  # port where the Django app runs
        restart: on-failure
    
      # Nginx server
      nginx:
        image: nginx:latest
        container_name: nginx_01
        ports:
          - 8000:8000
        volumes:
          # copy files to the Docker container
          - ./static/:/static  # static files
          - ./nginx:/etc/nginx/conf.d  # nginx configuration file
        depends_on:
          - gunicorn
        restart: on-failure