Commit d58f8955 authored by root's avatar root
Browse files

addaptation pour Traefik

parent 9d0c908f
Pipeline #3896 failed with stages
in 18 minutes and 54 seconds
......@@ -17,7 +17,7 @@
run_blog:
run_bikejust4fun:
stage: test
tags:
- dind
......@@ -35,7 +35,7 @@
services:
- docker:dind
script:
- echo "run blog for testing"
- echo "run bikejust4fun for testing"
- docker-compose up -d
- docker-compose ps
......@@ -57,7 +57,7 @@
script:
- echo "deploy to staging"
- docker-compose pull
- docker-compose up -d
- docker-compose -f docker-compose.yml -f docker-compose.staging.yml up -d
environment:
name: staging
url: http://staging.bressure.net:8082/
......@@ -74,7 +74,7 @@
script:
- echo "deploy to production"
- docker-compose pull
- docker-compose up -d
- docker-compose -f docker-compose.yml -f docker-compose.production.yml up -d
environment:
name: production
url: http://production.bressure.net:8082/
......@@ -93,8 +93,8 @@
variables:
GIT_STRATEGY: none
script:
- echo "Remove blog"
- docker-compose down
- echo "Remove bikejust4fun"
- docker-compose -f docker-compose.yml -f docker-compose.staging.yml down
when: manual
environment:
name: staging
......@@ -113,8 +113,8 @@
variables:
GIT_STRATEGY: none
script:
- echo "Remove blog"
- docker-compose down
- echo "Remove bikejust4fun"
- docker-compose -f docker-compose.yml -f docker-compose.production.yml down
when: manual
environment:
name: production
......
version: '3.7'
services:
wordpress:
labels:
- "traefik.http.routers.bikejust4fun.rule=Host(`bikejust4fun.bressure.net`)"
- "traefik.docker.network=traefik_backend"
networks:
- default
- outside
networks:
outside:
external: true
name: traefik_backend
version: '3.7'
services:
wordpress:
labels:
- "traefik.http.routers.bikejust4fun.rule=Host(`bikejust4fun.bressure.net`)"
- "traefik.docker.network=traefik_backend"
networks:
- default
- outside
networks:
outside:
external: true
name: traefik_backend
version: '3.3'
version: '3.7'
services:
db:
image: mysql:5.7
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment