mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-09-18 18:19:02 +00:00
fix: use docker volumes (#1067)
* fix: use docker volumes remove bind mount use docker volumes * ci: remove payments app from tests
This commit is contained in:
parent
8342bd93c8
commit
c013942d1f
@ -204,7 +204,7 @@ bench get-app --branch version-12 https://github.com/myusername/myapp
|
|||||||
bench --site mysite.localhost install-app myapp
|
bench --site mysite.localhost install-app myapp
|
||||||
```
|
```
|
||||||
|
|
||||||
At the time of this writing, the Payments app has been factored out of the Version 14 ERPNext app and is now a separate app. ERPNext will not install without it, however, so we need to specify `--resolve-deps` command line switch to install it.
|
At the time of this writing, the Payments app has been factored out of the Version 14 ERPNext app and is now a separate app. ERPNext will not install it.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
bench get-app --branch version-14 --resolve-deps erpnext
|
bench get-app --branch version-14 --resolve-deps erpnext
|
||||||
|
@ -17,7 +17,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-changeit}
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-changeit}
|
||||||
volumes:
|
volumes:
|
||||||
- ${HOME}/data/mariadb:/var/lib/mysql
|
- db-data:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- mariadb-network
|
- mariadb-network
|
||||||
|
|
||||||
@ -25,3 +25,6 @@ networks:
|
|||||||
mariadb-network:
|
mariadb-network:
|
||||||
name: mariadb-network
|
name: mariadb-network
|
||||||
external: false
|
external: false
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db-data:
|
||||||
|
@ -42,4 +42,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 443:443
|
- 443:443
|
||||||
volumes:
|
volumes:
|
||||||
- ${HOME}/data/traefik/certificates:/certificates
|
- cert-data:/certificates
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
cert-data:
|
||||||
|
@ -89,12 +89,6 @@ def erpnext_site(compose: Compose):
|
|||||||
"erpnext",
|
"erpnext",
|
||||||
site_name,
|
site_name,
|
||||||
]
|
]
|
||||||
erpnext_version = os.environ.get("ERPNEXT_VERSION")
|
|
||||||
if erpnext_version in [
|
|
||||||
"develop",
|
|
||||||
"version-14",
|
|
||||||
] or erpnext_version.startswith("v14"):
|
|
||||||
args.append("--install-app=payments")
|
|
||||||
compose.bench(*args)
|
compose.bench(*args)
|
||||||
compose("restart", "backend")
|
compose("restart", "backend")
|
||||||
yield site_name
|
yield site_name
|
||||||
|
Loading…
Reference in New Issue
Block a user