Add example docker-compose for web app

This commit is contained in:
Joey Hafner 2022-06-23 22:00:44 -07:00
parent a6a1e58c9f
commit cf1c00cf99

View File

@ -28,3 +28,25 @@ For files greater than 2 GB, use one of the following:
/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
```