2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 18:48:58 +00:00
frappe_docker/installation/docker-compose-custom.yml

124 lines
2.9 KiB
YAML
Raw Normal View History

2020-03-06 06:12:11 +00:00
version: '3'
services:
[app]-assets:
image: [app]-assets
build:
2020-06-28 10:58:27 +00:00
context: ../build/[app]-nginx
2020-03-06 06:12:11 +00:00
restart: on-failure
environment:
2020-06-28 10:58:27 +00:00
- FRAPPE_PY=[app]-python
2020-03-06 06:12:11 +00:00
- FRAPPE_PY_PORT=8000
- FRAPPE_SOCKETIO=frappe-socketio
- SOCKETIO_PORT=9000
- LETSENCRYPT_HOST=${SITES}
- VIRTUAL_HOST=${SITES}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
depends_on:
- [app]-python
- frappe-socketio
- frappe-worker-default
- frappe-worker-long
- frappe-worker-short
links:
- [app]-python
- frappe-socketio
- frappe-worker-default
- frappe-worker-long
- frappe-worker-short
volumes:
- sites-vol:/var/www/html/sites:rw
2020-03-06 06:12:11 +00:00
- assets-vol:/assets:rw
[app]-python:
image: [app]-worker
build:
2020-06-28 10:58:27 +00:00
context: ../build/[app]-worker
2020-03-06 06:12:11 +00:00
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
volumes:
- 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-03-06 06:12:11 +00:00
- assets-vol:/home/frappe/frappe-bench/sites/assets:rw
frappe-socketio:
image: frappe/frappe-socketio:${FRAPPE_VERSION}
2020-03-06 06:12:11 +00:00
restart: on-failure
depends_on:
- redis-socketio
links:
- redis-socketio
volumes:
- 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-03-06 06:12:11 +00:00
frappe-worker-default:
image: [app]-worker
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
2021-02-20 10:54:01 +00:00
- logs-vol:/home/frappe/frappe-bench/logs:rw
2020-03-06 06:12:11 +00:00
frappe-worker-short:
image: [app]-worker
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
2021-02-20 10:54:01 +00:00
- logs-vol:/home/frappe/frappe-bench/logs:rw
2020-03-06 06:12:11 +00:00
frappe-worker-long:
image: [app]-worker
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
2021-02-20 10:54:01 +00:00
- logs-vol:/home/frappe/frappe-bench/logs:rw
2020-03-06 06:12:11 +00:00
frappe-schedule:
image: [app]-worker
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
2021-02-20 10:54:01 +00:00
- logs-vol:/home/frappe/frappe-bench/logs:rw
2020-03-06 06:12:11 +00:00
volumes:
assets-vol:
sites-vol:
2021-02-20 10:54:01 +00:00
logs-vol: