Add CI config and adapt other configs

This commit is contained in:
Luke Murphy 2020-04-30 14:24:29 +02:00
parent 42010eee3c
commit e08b6ae9f9
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
5 changed files with 28 additions and 4 deletions

View File

@ -5,7 +5,7 @@ steps:
- name: docker-compose up & down
image: docker/compose:1.25.5
commands:
- docker-compose up -d
- docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d
- sleep 10
- docker-compose ps
- docker-compose down

22
docker-compose.ci.yml Normal file
View File

@ -0,0 +1,22 @@
---
version: "3.7"
services:
traefik:
container_name: traefik
ports:
- "8001:8001"
- "8080:8080"
command:
- "--api=true"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:8001"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.routers.traefik.service=api@internal"

View File

@ -4,6 +4,9 @@ version: "3.7"
services:
traefik:
container_name: traefik
ports:
- "80:80"
- "8080:8080"
command:
- "--api=true"
- "--api.insecure=true"

View File

@ -4,7 +4,9 @@ version: "3.7"
services:
traefik:
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"

View File

@ -4,6 +4,3 @@ version: "3.7"
services:
traefik:
image: "traefik:v2.2"
ports:
- "80:80"
- "8080:8080"