mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-14 00:54:07 +00:00
114 lines
2.6 KiB
YAML
114 lines
2.6 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
frappe-nginx:
|
|
image: frappe/frappe-nginx:${FRAPPE_VERSION}
|
|
restart: on-failure
|
|
environment:
|
|
- FRAPPE_PY=frappe-python
|
|
- FRAPPE_PY_PORT=8000
|
|
- FRAPPE_SOCKETIO=frappe-socketio
|
|
- SOCKETIO_PORT=9000
|
|
- LETSENCRYPT_HOST=${SITES}
|
|
- VIRTUAL_HOST=${SITES}
|
|
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
|
|
depends_on:
|
|
- frappe-python
|
|
- frappe-socketio
|
|
- frappe-worker-default
|
|
- frappe-worker-long
|
|
- frappe-worker-short
|
|
links:
|
|
- frappe-python
|
|
- frappe-socketio
|
|
- frappe-worker-default
|
|
- frappe-worker-long
|
|
- frappe-worker-short
|
|
volumes:
|
|
- sites-vol:/var/www/html/sites:rw
|
|
- assets-vol:/assets:rw
|
|
|
|
frappe-python:
|
|
image: frappe/frappe-worker:${FRAPPE_VERSION}
|
|
restart: on-failure
|
|
environment:
|
|
- MARIADB_HOST=${MARIADB_HOST}
|
|
- REDIS_CACHE=redis-cache:6379
|
|
- REDIS_QUEUE=redis-queue:6379
|
|
- REDIS_SOCKETIO=redis-socketio:6379
|
|
- SOCKETIO_PORT=9000
|
|
- AUTO_MIGRATE=1
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw
|
|
|
|
frappe-socketio:
|
|
image: frappe/frappe-socketio:${FRAPPE_VERSION}
|
|
restart: on-failure
|
|
depends_on:
|
|
- redis-socketio
|
|
links:
|
|
- redis-socketio
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
|
|
frappe-worker-default:
|
|
image: frappe/frappe-worker:${FRAPPE_VERSION}
|
|
restart: on-failure
|
|
command: worker
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
links:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
|
|
frappe-worker-short:
|
|
image: frappe/frappe-worker:${FRAPPE_VERSION}
|
|
restart: on-failure
|
|
command: worker
|
|
environment:
|
|
- WORKER_TYPE=short
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
links:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
|
|
frappe-worker-long:
|
|
image: frappe/frappe-worker:${FRAPPE_VERSION}
|
|
restart: on-failure
|
|
command: worker
|
|
environment:
|
|
- WORKER_TYPE=long
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
links:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
|
|
frappe-schedule:
|
|
image: frappe/frappe-worker:${FRAPPE_VERSION}
|
|
restart: on-failure
|
|
command: schedule
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
links:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
|
|
volumes:
|
|
assets-vol:
|
|
sites-vol:
|