diff --git a/artel/docker-compose-prod.yml b/artel/docker-compose-prod.yml index bc81c46..927ae22 100644 --- a/artel/docker-compose-prod.yml +++ b/artel/docker-compose-prod.yml @@ -4,6 +4,7 @@ services: build: dockerfile: Dockerfile context: ./ + restart: always ports: - "8000:8000" volumes: diff --git a/artel/uwsgi.ini b/artel/uwsgi.ini new file mode 100644 index 0000000..1a182d5 --- /dev/null +++ b/artel/uwsgi.ini @@ -0,0 +1,14 @@ +[uwsgi] +project = artel +base = artel/ +socket_dir = %(base) + +chdir = %(base) +module = %(project).wsgi:application + +master = true +processes = 5 + +socket = %(socket_dir)/%(project).sock +vacuum = true +daemonize = /var/log/uwsgi/project.log \ No newline at end of file