init
This commit is contained in:
commit
544f15af59
3
deploy.md
Normal file
3
deploy.md
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
cd /volume1/docker/gitea/server/git/repositories/mathieu/traefik.git/
|
||||
cp traefik.yml /volume1/docker/traefik/conf/traefik.yml
|
40
docker-compose.yml
Normal file
40
docker-compose.yml
Normal file
@ -0,0 +1,40 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:latest
|
||||
container_name: "traefik"
|
||||
restart: always
|
||||
ports:
|
||||
- "8888:80"
|
||||
- "8443:443"
|
||||
#networks:
|
||||
# - web
|
||||
# - default
|
||||
env_file:
|
||||
- './conf/.ovh-api.env'
|
||||
volumes:
|
||||
# Mapping sur le socket interne de Docker
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
# Mapping du fichier de configuration statique
|
||||
- '/volume1/docker/traefik/conf/traefik.yml:/traefik.yml'
|
||||
# Mapping du dossier contenant la configuration dynamique
|
||||
#- './conf/dyn_traefik/:/dyn_traefik/'
|
||||
# Mapping du fichier de stockage des certificats
|
||||
#- './conf/acme.json:/acme.json'
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
|
||||
|
||||
services:
|
||||
whoami:
|
||||
image: traefik/whoami:v1.6.0
|
||||
container_name: "whoami"
|
||||
labels:
|
||||
# On indique que Traefik doit prendre en compte ce conteneur
|
||||
- "traefik.enable=true"
|
||||
# On déclare le routeur 'whoami' pour notre application avec une règle qui match sur le hostname
|
||||
- "traefik.http.routers.whoami.rule=Host(`whoami.my-domain.fr`)"
|
||||
# On précise le entrypoint sur lequel ce routeur va être effectif
|
||||
- "traefik.http.routers.whoami.entrypoints=websecure"
|
3
traefik.yml
Normal file
3
traefik.yml
Normal file
@ -0,0 +1,3 @@
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
exposedByDefault: false
|
Loading…
Reference in New Issue
Block a user