Add example docker-compose for web app
This commit is contained in:
parent
e8040455d0
commit
d59436125c
@ -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
|
//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
|
/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