Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- app:
- build:
- context: .
- dockerfile: Dockerfile
- image: localhost:5000/heyman
- environment:
- - DJANGO_SETTINGS_MODULE=heyman.settings
- - ENV=development
- - PYTHONPATH=/home/ubuntu/apps/heyman/current:.
- - DATABASES_URL=postgres://USER:PASSWORD@HOST:PORT/NAME
- command: bash -c "python manage.py runserver 0.0.0.0:5000"
- volumes:
- - ./logs:/var/log/heyman
- - .:/home/ubuntu/apps/heyman/current
- volumes_from:
- - packages
- ports:
- - "5004:5000"
- depends_on:
- - db
- - redis
- stdin_open: true
- tty: true
- background:
- command: bash -c "python manage.py process_tasks"
- image: localhost:5000/heyman
- environment:
- - DJANGO_SETTINGS_MODULE=heyman.settings
- - ENV=development
- - PYTHONPATH=/home/ubuntu/apps/heyman/current:.
- - DATABASES_URL=postgres://USER:PASSWORD@HOST:PORT/NAME
- volumes:
- - .:/home/ubuntu/apps/heyman/current
- - ./logs:/var/log/heyman
- depends_on:
- - app
- packages:
- image: busybox
- volumes:
- - packages_volume:/root/.local
- db:
- image: postgres:9.4
- environment:
- - PGDATA=/var/lib/postgresql/data/pgdata
- ports:
- - "5433:5432"
- volumes:
- - ./tmp/db:/var/lib/postgresql/data/pgdata
- redis:
- image: redis
- ports:
- - "6379"
- - "8080"
- volumes:
- packages_volume:
- external:
- name: packages_volume
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement