2021-12-10 08:53:43 +00:00
|
|
|
version: "3"
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
services:
|
2020-03-03 23:40:11 +00:00
|
|
|
erpnext-nginx:
|
2020-09-22 10:16:07 +00:00
|
|
|
image: frappe/erpnext-nginx:${ERPNEXT_VERSION}
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
- FRAPPE_PY=erpnext-python
|
|
|
|
- FRAPPE_PY_PORT=8000
|
|
|
|
- FRAPPE_SOCKETIO=frappe-socketio
|
2020-03-01 23:39:57 +00:00
|
|
|
- SOCKETIO_PORT=9000
|
2020-02-20 17:05:49 +00:00
|
|
|
- LETSENCRYPT_HOST=${SITES}
|
|
|
|
- VIRTUAL_HOST=${SITES}
|
|
|
|
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
|
|
|
|
depends_on:
|
|
|
|
- erpnext-python
|
|
|
|
- frappe-socketio
|
|
|
|
- frappe-worker-default
|
|
|
|
- frappe-worker-long
|
|
|
|
- frappe-worker-short
|
|
|
|
links:
|
|
|
|
- erpnext-python
|
|
|
|
- frappe-socketio
|
|
|
|
- frappe-worker-default
|
|
|
|
- frappe-worker-long
|
|
|
|
- frappe-worker-short
|
|
|
|
volumes:
|
2020-04-14 15:23:27 +00:00
|
|
|
- sites-vol:/var/www/html/sites:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
- assets-vol:/assets:rw
|
|
|
|
|
|
|
|
erpnext-python:
|
2020-09-22 10:16:07 +00:00
|
|
|
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2020-03-01 10:09:26 +00:00
|
|
|
- MARIADB_HOST=${MARIADB_HOST}
|
2020-02-20 17:05:49 +00:00
|
|
|
- REDIS_CACHE=redis-cache:6379
|
|
|
|
- REDIS_QUEUE=redis-queue:6379
|
|
|
|
- REDIS_SOCKETIO=redis-socketio:6379
|
|
|
|
- SOCKETIO_PORT=9000
|
2020-03-21 10:17:35 +00:00
|
|
|
- AUTO_MIGRATE=1
|
2020-02-20 17:05:49 +00:00
|
|
|
volumes:
|
2020-04-14 15:23:27 +00:00
|
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw
|
2021-02-20 10:54:01 +00:00
|
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
frappe-socketio:
|
2020-09-22 10:16:07 +00:00
|
|
|
image: frappe/frappe-socketio:${FRAPPE_VERSION}
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- redis-socketio
|
|
|
|
links:
|
|
|
|
- redis-socketio
|
|
|
|
volumes:
|
2020-04-14 15:23:27 +00:00
|
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
2021-02-20 10:54:01 +00:00
|
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
frappe-worker-default:
|
2020-09-22 10:16:07 +00:00
|
|
|
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
|
|
|
command: worker
|
|
|
|
depends_on:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
links:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
volumes:
|
2020-04-14 15:23:27 +00:00
|
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
2021-02-20 10:54:01 +00:00
|
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
frappe-worker-short:
|
2020-09-22 10:16:07 +00:00
|
|
|
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
|
|
|
command: worker
|
|
|
|
environment:
|
|
|
|
- WORKER_TYPE=short
|
|
|
|
depends_on:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
links:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
volumes:
|
2020-04-14 15:23:27 +00:00
|
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
2021-02-20 10:54:01 +00:00
|
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
frappe-worker-long:
|
2020-09-22 10:16:07 +00:00
|
|
|
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
|
|
|
command: worker
|
|
|
|
environment:
|
|
|
|
- WORKER_TYPE=long
|
|
|
|
depends_on:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
links:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
volumes:
|
2020-04-14 15:23:27 +00:00
|
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
2021-02-20 10:54:01 +00:00
|
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
frappe-schedule:
|
2020-09-22 10:16:07 +00:00
|
|
|
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
|
|
|
command: schedule
|
|
|
|
depends_on:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
links:
|
|
|
|
- redis-queue
|
|
|
|
- redis-cache
|
|
|
|
volumes:
|
2020-04-14 15:23:27 +00:00
|
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
2021-02-20 10:54:01 +00:00
|
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
assets-vol:
|
2020-04-14 15:23:27 +00:00
|
|
|
sites-vol:
|
2021-02-20 10:54:01 +00:00
|
|
|
logs-vol:
|