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:
|
2020-10-20 15:59:24 +02:00
|
|
|
- ${PWD}/public/packs:/usr/src/app/public/packs
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/public/uploads:/usr/src/app/public/uploads
|
|
|
|
- ${PWD}/invoices:/usr/src/app/invoices
|
2020-12-22 16:39:37 +01:00
|
|
|
- ${PWD}/payment_schedules:/usr/src/app/payment_schedules
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/exports:/usr/src/app/exports
|
2019-09-24 17:42:50 +02:00
|
|
|
- ${PWD}/imports:/usr/src/app/imports
|
2022-05-11 16:25:15 +02:00
|
|
|
- ${PWD}/proof_of_identity_files:/usr/src/app/proof_of_identity_files
|
2017-03-13 22:17:54 +01:00
|
|
|
- ${PWD}/log:/var/log/supervisor
|
|
|
|
- ${PWD}/plugins:/usr/src/app/plugins
|
2019-01-10 10:52:29 +01:00
|
|
|
- ${PWD}/accounting:/usr/src/app/accounting
|
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:
|
2019-10-09 09:52:58 +02:00
|
|
|
image: postgres:9.6
|
2016-06-14 14:33:57 +02:00
|
|
|
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
|
2020-03-23 16:58:17 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2016-06-14 14:33:57 +02:00
|
|
|
|
2016-09-06 12:19:47 +02:00
|
|
|
elasticsearch:
|
2018-04-09 16:37:21 +02:00
|
|
|
image: elasticsearch:5.6
|
|
|
|
environment:
|
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
2016-06-14 14:33:57 +02:00
|
|
|
volumes:
|
2018-12-03 16:06:08 +01:00
|
|
|
- ${PWD}/elasticsearch/config:/usr/share/elasticsearch/config
|
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:
|
2020-06-09 16:23:07 +02:00
|
|
|
image: redis:6-alpine
|
2016-06-14 14:33:57 +02:00
|
|
|
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:
|
2020-03-09 16:57:43 +01:00
|
|
|
image: nginx:latest
|
2016-09-06 12:19:47 +02:00
|
|
|
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
|