Run pre-commit on docs
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
Add following labels to `frontend` service
|
Add following labels to `frontend` service
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
traefik.http.routers.custom-domain.rule: Host(`custom.localhost`)
|
traefik.http.routers.custom-domain.rule: Host(`custom.localhost`)
|
||||||
# Comment the entrypoints label if traefik already has default entrypoint set
|
# Comment the entrypoints label if traefik already has default entrypoint set
|
||||||
traefik.http.routers.custom-domain.entrypoints: web
|
traefik.http.routers.custom-domain.entrypoints: web
|
||||||
traefik.http.middlewares.custom-domain.headers.customrequestheaders.Host: mysite.localhost
|
traefik.http.middlewares.custom-domain.headers.customrequestheaders.Host: mysite.localhost
|
||||||
traefik.http.routers.custom-domain.middlewares: custom-domain
|
traefik.http.routers.custom-domain.middlewares: custom-domain
|
||||||
# Add following header only if TLS is needed in case of live server
|
# Add following header only if TLS is needed in case of live server
|
||||||
traefik.http.routers.custom-domain.tls.certresolver: main-resolver
|
traefik.http.routers.custom-domain.tls.certresolver: main-resolver
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|||||||
@@ -37,10 +37,10 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
frappe-network:
|
frappe-network:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
||||||
- In Above stack, `backup` runs every 3 hours.
|
- In Above stack, `backup` runs every 3 hours.
|
||||||
- Change image and tag version as per need.
|
- Change image and tag version as per need.
|
||||||
- Change environment variables as per the bucket credentials.
|
- Change environment variables as per the bucket credentials.
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
Add the following configuration to `launch.json` `configurations` array to start bench console and use debugger. Replace `mysite.localhost` with appropriate site. Also replace `frappe-bench` with name of the bench directory.
|
Add the following configuration to `launch.json` `configurations` array to start bench console and use debugger. Replace `mysite.localhost` with appropriate site. Also replace `frappe-bench` with name of the bench directory.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "Bench Console",
|
"name": "Bench Console",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/frappe-bench/apps/frappe/frappe/utils/bench_helper.py",
|
"program": "${workspaceFolder}/frappe-bench/apps/frappe/frappe/utils/bench_helper.py",
|
||||||
"args": [
|
"args": ["frappe", "--site", "mysite.localhost", "console"],
|
||||||
"frappe", "--site", "mysite.localhost", "console"
|
|
||||||
],
|
|
||||||
"pythonPath": "${workspaceFolder}/frappe-bench/env/bin/python",
|
"pythonPath": "${workspaceFolder}/frappe-bench/env/bin/python",
|
||||||
"cwd": "${workspaceFolder}/frappe-bench/sites",
|
"cwd": "${workspaceFolder}/frappe-bench/sites",
|
||||||
"env": {
|
"env": {
|
||||||
"DEV_SERVER": "1"
|
"DEV_SERVER": "1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Not using separate container
|
|||||||
Add following to frappe container from the `.devcontainer/docker-compose.yml`:
|
Add following to frappe container from the `.devcontainer/docker-compose.yml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
app1.localhost: 172.17.0.1
|
app1.localhost: 172.17.0.1
|
||||||
app2.localhost: 172.17.0.1
|
app2.localhost: 172.17.0.1
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ Commands explained:
|
|||||||
- `yq eval ".\"networks\"={\"traefik-public\":{\"external\":true}}"`, this commands adds external network `traefik-public` to the stack
|
- `yq eval ".\"networks\"={\"traefik-public\":{\"external\":true}}"`, this commands adds external network `traefik-public` to the stack
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
- Set `BENCH_SUFFIX` to the stack name. the stack will be located at `~/gitops/compose-${BENCH_SUFFIX}.yaml`.
|
- Set `BENCH_SUFFIX` to the stack name. the stack will be located at `~/gitops/compose-${BENCH_SUFFIX}.yaml`.
|
||||||
- `traefik-public` is assumed to be the network for traefik loadbalancer for swarm.
|
- `traefik-public` is assumed to be the network for traefik loadbalancer for swarm.
|
||||||
- Once the stack YAML is generated, you can edit it further for advance setup and commit it to your gitops
|
- Once the stack YAML is generated, you can edit it further for advance setup and commit it to your gitops
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ docker-compose -f compose.yaml \
|
|||||||
# Start containers
|
# Start containers
|
||||||
docker-compose --project <project-name> -f ~/gitops/docker-compose.yml up -d
|
docker-compose --project <project-name> -f ~/gitops/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setup ERPNext using containerized MariaDB and Redis with Letsencrypt certificates.
|
### Setup ERPNext using containerized MariaDB and Redis with Letsencrypt certificates.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Reference in New Issue
Block a user