Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- version: '2'
- services:
- web:
- command: runserver web:8000
- volumes:
- - $PWD:/app/app
- links:
- - postgres
- depends_on:
- - postgres
- worker:
- volumes:
- - $PWD:/app/app
- links:
- - postgres
- depends_on:
- - postgres
- # Local DB
- postgres:
- container_name: postgres
- image: postgres
- volumes:
- - $PWD/db.dump:/db.dump
- - $PWD/extras/importdb.sh:/docker-entrypoint-initdb.d/importdb.sh
- environment:
- POSTGRES_DB: "kiwibasedb"
- POSTGRES_USER: "kiwibaseuser"
- POSTGRES_PASSWORD: "pw"
- ports:
- - "5432:5432"
- # Nginx proxy
- nginx:
- container_name: nginx
- image: nginx
- links:
- - web
- depends_on:
- - web
- restart: always
- ports:
- - "8000:80"
- volumes:
- - "static:/app/static"
- - "$PWD/extras/nginx.local.conf:/etc/nginx/conf.d/default.conf:ro"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement