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
|
### Certificats
|
||||||
Copy crt and key files on `/home/docker/certs/`
|
Copy crt and key files on `/home/docker/certs/`
|
||||||
|
|
||||||
|
## Environment
|
||||||
|
Copy `.env-dist` to `.env` file and adapt as your needs
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
portainer:
|
portainer:
|
||||||
|
env_file: .env
|
||||||
# if behind proxy
|
# if behind proxy
|
||||||
# command: --trusted-origins=portainer.vdglab.net
|
# command: --trusted-origins=portainer.vdglab.net
|
||||||
# without proxy
|
# without proxy
|
||||||
@ -21,7 +22,7 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "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.docker.network=traefik-net"
|
||||||
- "traefik.http.routers.portainer.entrypoints=websecure"
|
- "traefik.http.routers.portainer.entrypoints=websecure"
|
||||||
- "traefik.http.routers.portainer.tls=true"
|
- "traefik.http.routers.portainer.tls=true"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user