Skip to content
Snippets Groups Projects
Select Git revision
  • 97b9de1d541819d09e472ce8e8662ee34dfd2146
  • main default
  • tp2
  • tp1
  • tp3
  • tp3-correction
  • tp2-correction
  • tp1-correction
  • admins
9 results

calculator.py

Blame
  • Forked from an inaccessible project.
    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