executing dockers as host

This commit is contained in:
Szakalakamaka
2020-09-01 11:52:52 +02:00
parent 72533c1a0c
commit 3f4e9ccec7
2 changed files with 5 additions and 4 deletions

7
Jenkinsfile vendored
View File

@@ -1,10 +1,9 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('docker-compose') {
steps { steps {
sh "docker-compose build" sh "docker-compose build"
} }
} }
stage('Deploy') { stage('Deploy') {

View File

@@ -2,9 +2,11 @@ version: '3'
services: services:
redis-server: redis-server:
image: 'redis' image: 'redis'
network_mode: "host"
restart: "no" restart: "no"
klaus: klaus:
restart: "no" restart: "no"
network_mode: "host"
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile