2016-06-14 14:33:57 +02:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
fabmanager:
|
|
|
|
image: sleede/fab-manager
|
|
|
|
environment:
|
|
|
|
RAILS_ENV: production
|
|
|
|
RACK_ENV: production
|
|
|
|
env_file:
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/config/env
|
2016-06-14 14:33:57 +02:00
|
|
|
volumes:
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/public/assets:/usr/src/app/public/assets
|
|
|
|
- ${PWD}/public/uploads:/usr/src/app/public/uploads
|
|
|
|
- ${PWD}/invoices:/usr/src/app/invoices
|
|
|
|
- ${PWD}/exports:/usr/src/app/exports
|
|
|
|
- ${PWD}/log:/var/log/supervisor
|
|
|
|
- ${PWD}/plugins:/usr/src/app/plugins
|
2016-06-14 14:33:57 +02:00
|
|
|
depends_on:
|
2016-09-06 12:19:47 +02:00
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
- elasticsearch
|
2016-06-14 14:33:57 +02:00
|
|
|
restart: always
|
|
|
|
|
2016-09-06 12:19:47 +02:00
|
|
|
postgres:
|
2016-06-14 14:33:57 +02:00
|
|
|
image: postgres:9.4
|
|
|
|
volumes:
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/postgresql:/var/lib/postgresql/data
|
2016-06-14 14:33:57 +02:00
|
|
|
restart: always
|
|
|
|
|
2016-09-06 12:19:47 +02:00
|
|
|
elasticsearch:
|
2016-06-14 14:33:57 +02:00
|
|
|
image: elasticsearch:1.7
|
|
|
|
volumes:
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/elasticsearch:/usr/share/elasticsearch/data
|
2016-06-14 14:33:57 +02:00
|
|
|
restart: always
|
|
|
|
|
2016-09-06 12:19:47 +02:00
|
|
|
redis:
|
2016-06-14 14:33:57 +02:00
|
|
|
image: redis:3.0
|
|
|
|
volumes:
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/redis:/data
|
2016-06-14 14:33:57 +02:00
|
|
|
restart: always
|
2016-09-06 12:19:47 +02:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:1.9
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/config/nginx:/etc/nginx/conf.d
|
|
|
|
- ${PWD}/letsencrypt/etc:/etc/letsencrypt
|
|
|
|
- ${PWD}/log:/var/log/nginx
|
2016-09-06 16:02:33 +02:00
|
|
|
volumes_from:
|
2016-09-06 12:19:47 +02:00
|
|
|
- fabmanager:ro
|
|
|
|
links:
|
|
|
|
- fabmanager:fabmanager
|
|
|
|
restart: always
|