154 lines
4.2 KiB
YAML
154 lines
4.2 KiB
YAML
# Initial login username: Administrator and login password: admin
|
|
version: "3.8"
|
|
|
|
services:
|
|
erpnext-nginx:
|
|
image: frappe/erpnext-nginx:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-nginx
|
|
restart: always
|
|
ports:
|
|
- ${APP_PORT}:80
|
|
environment:
|
|
- FRAPPE_PY=erpnext-python
|
|
- FRAPPE_PY_PORT=${APP_PORT}
|
|
- FRAPPE_SOCKETIO=frappe-socketio
|
|
- SOCKETIO_PORT=9000
|
|
volumes:
|
|
- sites-vol:/var/www/html/sites:rw
|
|
- assets-vol:/assets:rw
|
|
|
|
erpnext-python:
|
|
image: frappe/erpnext-worker:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-worker
|
|
restart: always
|
|
environment:
|
|
- MARIADB_HOST=${DB_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:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-socketio
|
|
restart: always
|
|
depends_on:
|
|
- redis-socketio
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
|
|
|
erpnext-worker-default:
|
|
image: frappe/erpnext-worker:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-worker-default
|
|
restart: always
|
|
command: worker
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
|
|
|
erpnext-worker-short:
|
|
image: frappe/erpnext-worker:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-worker-short
|
|
restart: always
|
|
command: worker
|
|
environment:
|
|
- WORKER_TYPE=short
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
|
|
|
erpnext-worker-long:
|
|
image: frappe/erpnext-worker:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-worker-long
|
|
restart: always
|
|
command: worker
|
|
environment:
|
|
- WORKER_TYPE=long
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
|
|
erpnext-schedule:
|
|
image: frappe/erpnext-worker:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-schedule
|
|
restart: always
|
|
command: schedule
|
|
depends_on:
|
|
- redis-queue
|
|
- redis-cache
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
|
|
|
redis-cache:
|
|
image: redis:${DB_REDIS_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-redis-cache
|
|
restart: always
|
|
volumes:
|
|
- ${VOLUMES_PATH_PREFIX}/redis-cache-vol:/data
|
|
|
|
redis-queue:
|
|
image: redis:${DB_REDIS_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-redis-queue
|
|
restart: always
|
|
volumes:
|
|
- ${VOLUMES_PATH_PREFIX}/redis-queue-vol:/data
|
|
|
|
redis-socketio:
|
|
image: redis:${DB_REDIS_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-redis-socketio
|
|
restart: always
|
|
volumes:
|
|
- ${VOLUMES_PATH_PREFIX}/redis-socketio-vol:/data
|
|
|
|
mariadb:
|
|
image: mariadb:${DB_MARIADB_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-mariadb
|
|
restart: always
|
|
ports:
|
|
- ${DB_MARIADB_PORT}:3306
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${DB_MARIADB_PASSWORD}
|
|
volumes:
|
|
- ./src/installation/frappe-mariadb.cnf:/etc/mysql/conf.d/frappe.cnf
|
|
- ${VOLUMES_PATH_PREFIX}/mariadb-vol:/var/lib/mysql
|
|
|
|
site-creator:
|
|
image: frappe/erpnext-worker:${APP_VERSION}
|
|
container_name: ${APP_CONTAINER_NAME}-site-creator
|
|
restart: "no"
|
|
command: new
|
|
depends_on:
|
|
- erpnext-python
|
|
environment:
|
|
- SITE_NAME=${APP_SITE_URL}
|
|
- SITES=${APP_SITE_NAME}
|
|
- DB_ROOT_USER=${DB_MRAIADB_USER}
|
|
- MYSQL_ROOT_PASSWORD=${DB_MARIADB_PASSWORD}
|
|
- ADMIN_PASSWORD=${APP_PASSWORD}
|
|
- INSTALL_APPS=${APP_INSTALL_APPS}
|
|
volumes:
|
|
- sites-vol:/home/frappe/frappe-bench/sites:rw
|
|
- logs-vol:/home/frappe/frappe-bench/logs:rw
|
|
|
|
volumes:
|
|
sites-vol:
|
|
assets-vol:
|
|
logs-vol:
|
|
|
|
networks:
|
|
default:
|
|
name: "${APP_NETWORK}" |