Add example docker-compose for web app
This commit is contained in:
parent
a6a1e58c9f
commit
cf1c00cf99
@ -27,4 +27,26 @@ For files greater than 2 GB, use one of the following:
|
||||
//joey-nas/backups /mnt/nas/backups cifs user=user,pass=resu,uid=1000,gid=1000,_netdev,vers=3.0 0 0
|
||||
|
||||
/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0
|
||||
```
|
||||
|
||||
## Example docker-compose.yml for Web app
|
||||
```
|
||||
version: "3"
|
||||
services:
|
||||
<SERVICE>:
|
||||
container_name: <SERVICE>
|
||||
image:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
environment:
|
||||
networks:
|
||||
- web
|
||||
labels:
|
||||
- traefik.http.routers.<SERVICE>.rule=Host(`<SERVICE>.jafner.net`)
|
||||
- traefik.http.routers.<SERVICE>.tls.certresolver=lets-encrypt
|
||||
# - traefik.http.routers.<SERVICE>.middlewares=lan-only@file # optional lan-only testing
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
```
|
Loading…
Reference in New Issue
Block a user