Add a Linux tips section and move Docker stacks to /srv/docker
This commit is contained in:
@@ -29,11 +29,12 @@ For this setup, we’ll use the **image maintained by LinuxServer.io**.
|
||||
---
|
||||
tree:
|
||||
/:
|
||||
- docker:
|
||||
- code-server:
|
||||
- compose.yaml
|
||||
- .env
|
||||
- config/
|
||||
- srv:
|
||||
- docker:
|
||||
- code-server:
|
||||
- compose.yaml
|
||||
- .env
|
||||
- config/
|
||||
- (any folder you want to mount in VS Code)/
|
||||
---
|
||||
::
|
||||
@@ -55,7 +56,7 @@ services:
|
||||
- TZ=Etc/UTC
|
||||
- HASHED_PASSWORD=${PW}
|
||||
volumes:
|
||||
- /docker/code-server/config:/config
|
||||
- /srv/docker/code-server/config:/config
|
||||
# add folders to mount in VS Code
|
||||
# - /path/to/folder:/folder
|
||||
ports:
|
||||
@@ -172,7 +173,7 @@ Inside the Swag config folders, create the file `code.subdomain.conf`.
|
||||
::
|
||||
|
||||
```bash [Terminal]
|
||||
sudo nano /docker/swag/config/nginx/proxy-confs/code.subdomain.conf
|
||||
sudo nano /srv/docker/swag/config/nginx/proxy-confs/code.subdomain.conf
|
||||
```
|
||||
|
||||
Paste the following configuration:
|
||||
|
||||
Reference in New Issue
Block a user