Skip to content

Commit f6c6d4f

Browse files
committed
feat: changed examples to be more robust
1 parent c12b209 commit f6c6d4f

File tree

17 files changed

+218
-176
lines changed

17 files changed

+218
-176
lines changed

examples/docker-compose.config-only-ssl.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

examples/docker-compose.env-only-ssl.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

examples/docker-compose.env-overrides-ssl.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

examples/docker-compose.single-user-env-only-ssl.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/docker-compose.single-user-env-only.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
USER1_PASS=securepassword1
2+
USER2_PASS=securepassword2
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
users:
2+
- username: user1
3+
password_env: USER1_PASS
4+
- username: user2
5+
password_env: USER2_PASS
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
services:
2+
swag:
3+
image: lscr.io/linuxserver/swag:latest
4+
container_name: swag
5+
environment:
6+
- PUID=1000
7+
- PGID=1000
8+
- TZ=America/Los_Angeles
9+
- URL=your-domain.com
10+
- VALIDATION=http
11+
- CERTPROVIDER=letsencrypt
12+
- EMAIL=email@your-domain.com
13+
env_file:
14+
- .env
15+
volumes:
16+
- swag-config:/config
17+
ftp:
18+
image: shawn636/mini-ftp:latest
19+
container_name: ftp
20+
ports:
21+
- "21:21"
22+
- "21000-21010:21000-21010"
23+
environment:
24+
- CONFIG_FILE=/etc/ftp/config.yaml
25+
- TLS_CERT=/config/etc/letsencrypt/live/your-domain.com/fullchain.pem
26+
- TLS_KEY=/config/etc/letsencrypt/live/your-domain.com/privkey.pem
27+
- ADDRESS=example.duckdns.org
28+
- MIN_PORT=21000
29+
- MAX_PORT=21010
30+
volumes:
31+
- ./config.yaml:/etc/ftp/config.yaml
32+
- ftp-data:/ftp
33+
- swag-config:/config
34+
volumes:
35+
swag-config:
36+
ftp-data:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
USER1_PASS=securepassword1
2+
USER2_PASS=securepassword2
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
server:
2+
min_port: 21000
3+
max_port: 21010
4+
address: 123.123.123.123 # Replace with your server's public IP address
5+
6+
users:
7+
- username: user1
8+
password_env: USER1_PASS
9+
- username: user2
10+
password_env: USER2_PASS

0 commit comments

Comments
 (0)