Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- app:
- image: koda/docker-knowledge
- #build: .
- volumes:
- - ./volumes/knowledge:/root/.knowledge
- ports:
- - "8080:8080"
- restart: always
- depends_on:
- - "db"
- webserver:
- image: nginx:mainline-alpine
- container_name: nginx
- restart: always
- tty: true
- volumes:
- - .volumes/nginx/:/etc/nginx/conf.d/
- ports:
- - "443:443"
- restart: always
- depends_on:
- - "app"
- db:
- image: postgres:9
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=admin123
- - POSTGRES_DB=knowledge_production
- volumes:
- #- ./volumes/initdb:/docker-entrypoint-initdb.d
- - ./volumes/postgres/data:/var/lib/postgresql/data
- restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement