Skip to content
Permalink
Browse files

Restart concourse when server restarts

  • Loading branch information...
FlorianSW committed Jul 26, 2019
1 parent 06a55a9 commit 325f3842235039373dc25518438cd3580261e873
Showing with 8 additions and 7 deletions.
  1. +5 −7 modules/role/manifests/concourse.pp
  2. +3 −0 modules/role/templates/concourse/docker-compose.yml.erb
@@ -15,15 +15,13 @@
version => '1.23.2',
}

vcsrepo { '/data/concourse':
ensure => 'latest',
provider => git,
require => [ Package['git'] ],
source => 'https://github.com/concourse/concourse.git',
revision => 'master',
file { '/data/concourse':
ensure => 'directory',
owner => 'root',
group => 'root',
}

file { '/data/concourse/docker-compose-droidwiki.yml':
file { '/data/concourse/docker-compose.yml':
ensure => present,
content => template('role/concourse/docker-compose.yml.erb'),
}
@@ -3,6 +3,7 @@ version: '3'
services:
db:
image: postgres
restart: unless-stopped
environment:
POSTGRES_DB: concourse
POSTGRES_USER: dev
@@ -13,6 +14,7 @@ services:
web:
image: concourse/concourse:5
command: web
restart: unless-stopped
links: [db]
depends_on: [db]
ports: ["8080:8080"]
@@ -33,6 +35,7 @@ services:
worker:
image: concourse/concourse:5
command: worker
restart: unless-stopped
privileged: true
links: [web]
depends_on: [web]

0 comments on commit 325f384

Please sign in to comment.
You can’t perform that action at this time.