Fix Connection Error (#1524)
This commit is contained in:
32
pwd.yml
32
pwd.yml
@@ -3,22 +3,30 @@ version: "3"
|
|||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- sites:/home/frappe/frappe-bench/sites
|
- sites:/home/frappe/frappe-bench/sites
|
||||||
- logs:/home/frappe/frappe-bench/logs
|
- logs:/home/frappe/frappe-bench/logs
|
||||||
|
environment:
|
||||||
|
DB_HOST: db
|
||||||
|
DB_PORT: "3306"
|
||||||
|
MYSQL_ROOT_PASSWORD: admin
|
||||||
|
MARIADB_ROOT_PASSWORD: admin
|
||||||
|
|
||||||
configurator:
|
configurator:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: none
|
condition: none
|
||||||
entrypoint:
|
entrypoint:
|
||||||
- bash
|
- bash
|
||||||
- -c
|
- -c
|
||||||
# add redis_socketio for backward compatibility
|
|
||||||
command:
|
command:
|
||||||
- >
|
- >
|
||||||
ls -1 apps > sites/apps.txt;
|
ls -1 apps > sites/apps.txt;
|
||||||
@@ -40,6 +48,8 @@ services:
|
|||||||
|
|
||||||
create-site:
|
create-site:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: none
|
condition: none
|
||||||
@@ -71,6 +81,8 @@ services:
|
|||||||
|
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.6
|
image: mariadb:10.6
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: mysqladmin ping -h localhost --password=admin
|
test: mysqladmin ping -h localhost --password=admin
|
||||||
interval: 1s
|
interval: 1s
|
||||||
@@ -91,6 +103,8 @@ services:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
depends_on:
|
depends_on:
|
||||||
- websocket
|
- websocket
|
||||||
deploy:
|
deploy:
|
||||||
@@ -115,6 +129,8 @@ services:
|
|||||||
|
|
||||||
queue-long:
|
queue-long:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -129,6 +145,8 @@ services:
|
|||||||
|
|
||||||
queue-short:
|
queue-short:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -143,6 +161,8 @@ services:
|
|||||||
|
|
||||||
redis-queue:
|
redis-queue:
|
||||||
image: redis:6.2-alpine
|
image: redis:6.2-alpine
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -151,6 +171,8 @@ services:
|
|||||||
|
|
||||||
redis-cache:
|
redis-cache:
|
||||||
image: redis:6.2-alpine
|
image: redis:6.2-alpine
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -159,6 +181,8 @@ services:
|
|||||||
|
|
||||||
scheduler:
|
scheduler:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -171,6 +195,8 @@ services:
|
|||||||
|
|
||||||
websocket:
|
websocket:
|
||||||
image: frappe/erpnext:v15.45.0
|
image: frappe/erpnext:v15.45.0
|
||||||
|
networks:
|
||||||
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@@ -187,3 +213,7 @@ volumes:
|
|||||||
redis-cache-data:
|
redis-cache-data:
|
||||||
sites:
|
sites:
|
||||||
logs:
|
logs:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
frappe_network:
|
||||||
|
driver: bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user