Add Containers/Docker/Docker Compose/Template.md
This commit is contained in:
31
Containers/Docker/Docker Compose/Template.md
Normal file
31
Containers/Docker/Docker Compose/Template.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
**Purpose**: PLACEHOLDER
|
||||||
|
|
||||||
|
## Docker Configuration
|
||||||
|
```jsx title="docker-compose.yml"
|
||||||
|
PLACEHOLDER
|
||||||
|
```
|
||||||
|
|
||||||
|
```jsx title=".env"
|
||||||
|
PLACEHOLDER
|
||||||
|
```
|
||||||
|
|
||||||
|
## Traefik Reverse Proxy Configuration
|
||||||
|
If the container does not run on the same host as Traefik, you will need to manually add configuration to Traefik's dynamic config file, outlined below.
|
||||||
|
``` yaml
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
PLACEHOLDER:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
tls:
|
||||||
|
certResolver: myresolver
|
||||||
|
service: PLACEHOLDER
|
||||||
|
rule: Host(`PLACEHOLDER.bunny-lab.io`)
|
||||||
|
|
||||||
|
services:
|
||||||
|
PLACEHOLDER:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: http://PLACEHOLDER:80
|
||||||
|
passHostHeader: true
|
||||||
|
```
|
Reference in New Issue
Block a user