Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.8'
- services:
- db:
- image: postgres:latest
- environment:
- POSTGRES_HOST_AUTH_METHOD: 'trust'
- volumes:
- - $PWD/.tmp/db:/var/lib/postgresql/data
- ports:
- - 5432:5432
- web:
- build:
- dockerfile: .packaging/web/Dockerfile
- context: .
- volumes:
- - $PWD/media:/app/media
- - $PWD/.tmp/socket:/app/socket/
- - $PWD/.tmp/static:/app/static/
- depends_on:
- - db
- command: bash -c "./manage.py migrate && ./manage.py collectstatic --noinput && gunicorn --reload --access-logfile - --workers 3 --bind unix:/app/socket/app.sock frft.wsgi:application"
- nginx:
- build:
- dockerfile: .packaging/nginx/Dockerfile
- context: .
- volumes:
- - $PWD/media:/app/media
- - $PWD/.tmp/socket/:/app/socket/
- - $PWD/.tmp/static:/app/static/
- ports:
- - 8080:80
Advertisement
Add Comment
Please, Sign In to add comment