1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/setup/docker-compose.yml

65 lines
1.6 KiB
YAML
Raw Normal View History

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:
- ./config/env
user: USER_ID
2016-06-14 14:33:57 +02:00
volumes:
- ./public/packs:/usr/src/app/public/packs
- ./public/uploads:/usr/src/app/public/uploads
- ./invoices:/usr/src/app/invoices
- ./payment_schedules:/usr/src/app/payment_schedules
- ./exports:/usr/src/app/exports
- ./imports:/usr/src/app/imports
- ./proof_of_identity_files:/usr/src/app/proof_of_identity_files
- ./log:/var/log/supervisor
- ./plugins:/usr/src/app/plugins
- ./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:
- ./postgresql:/var/lib/postgresql/data
2016-06-14 14:33:57 +02:00
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: trust
2016-09-06 12:19:47 +02:00
elasticsearch:
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:
- ./elasticsearch/config:/usr/share/elasticsearch/config
- ./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:
- ./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:
- ./config/nginx:/etc/nginx/conf.d
- ./letsencrypt/etc:/etc/letsencrypt
- ./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