Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data:
- restart: always
- image: busybox
- volumes:
- - ./db:/var/lib/postgresql
- command: "true"
- postgres:
- restart: always
- image: postgres:9.4
- volumes_from:
- - data
- volumes:
- - ./db_dump:/dumps
- ports:
- - "5432:5432"
- environment:
- POSTGRES_PASSWORD: postgres
- POSTGRES_USER: postgres
- web:
- restart: always
- build: .
- command: bash -c 'python manage.py migrate && python manage.py runserver 0.0.0.0:8001'
- volumes:
- - .:/project
- ports:
- - "8001:8001"
- links:
- - postgres
- environment:
- DJANGO_DEBUG: "True"
- nginx:
- restart: always
- build: ./nginx/
- ports:
- - "80:80"
- - "443:443"
- volumes_from:
- - web
- links:
- - web
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement