set env variables
This commit is contained in:
parent
feb9f17298
commit
f3cd91dd18
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.env
|
||||
@ -11,6 +11,9 @@ sudo mkdir -p /home/docker/portainer/data
|
||||
### Certificats
|
||||
Copy crt and key files on `/home/docker/certs/`
|
||||
|
||||
## Environment
|
||||
Copy `.env-dist` to `.env` file and adapt as your needs
|
||||
|
||||
## Run
|
||||
```bash
|
||||
docker compose up -d
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
services:
|
||||
portainer:
|
||||
env_file: .env
|
||||
# if behind proxy
|
||||
# command: --trusted-origins=portainer.vdglab.net
|
||||
# without proxy
|
||||
@ -21,7 +22,7 @@ services:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.portainer.rule=Host(`portainer.vdglab.net`)"
|
||||
- "traefik.http.routers.portainer.rule=Host(`${TFK_HOST}`)"
|
||||
- "traefik.docker.network=traefik-net"
|
||||
- "traefik.http.routers.portainer.entrypoints=websecure"
|
||||
- "traefik.http.routers.portainer.tls=true"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user