Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- web:
- build:
- context: ./web
- args:
- - REQUIREMENTS_FILE=requirements_all.txt
- - REQUIREMENTS_SRC_PATH=requirements*.txt
- env_file: ./web/.env
- volumes:
- - ./web:/code
- depends_on:
- - postgres
- - redis
- command: newrelic-admin run-program python manage.py runserver 0.0.0.0:8000
- nginx:
- build: ./nginx/
- ports:
- - "80:80"
- volumes:
- - ./web/static:/code/static
- depends_on:
- - web
- postgres:
- image: postgres:latest
- ports:
- - "5432:5432"
- environment:
- - POSTGRES_USER=administrator
- - POSTGRES_PASSWORD=love_docker
- volumes:
- - /var/lib/postgresql/data/
- redis:
- image: redis:latest
- ports:
- - "6379:6379"
- volumes:
- - /data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement