Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- db:
- restart: always
- container_name: tts-db
- image: postgres:9.6
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=tts
- expose:
- - "5432"
- nginx:
- image: nginx:latest
- container_name: tts-nginx
- ports:
- - "8000:8000"
- volumes:
- - ./nginx/site-enabled:/etc/nginx/conf.d
- depends_on:
- - web
- web:
- build: .
- container_name: tts-app
- environment:
- - DATABASE=db
- - DEBUG=False
- - STATICFILES_STORAGE=whitenoise.storage.CompressedManifestStaticFilesStorage
- depends_on:
- - db
- expose:
- - "8888"
- entrypoint: ./entry_point.sh
- command: gunicorn urdu_tts.wsgi:application -w 2 -b :8888
- restart: always
- upstream web {
- ip_hash;
- server web:8888;
- }
- server {
- location ^/static/ {
- autoindex on;
- alias /static/;
- }
- location ~ ^/media/?(.*)$ {
- try_files /media/$1 /mediafiles/$1 =404;
- }
- location / {
- proxy_pass http://web;
- client_max_body_size 20m;
- }
- listen 8000;
- server_name localhost;
- }
Add Comment
Please, Sign In to add comment