Last active
July 20, 2017 12:54
-
-
Save seeruk/59fc5ae5371cab37aafa46cff54c14bf to your computer and use it in GitHub Desktop.
Concourse CI working with Docker Compose V3 syntax.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
concourse-db: | |
image: postgres:9.5 | |
environment: | |
- POSTGRES_DB=concourse | |
- POSTGRES_USER=concourse | |
- POSTGRES_PASSWORD=changeme | |
- PGDATA=/database | |
volumes: | |
- concourse-db-data:/database | |
concourse-web: | |
image: concourse/concourse | |
command: web | |
depends_on: | |
- concourse-db | |
environment: | |
- CONCOURSE_BASIC_AUTH_USERNAME=concourse | |
- CONCOURSE_BASIC_AUTH_PASSWORD=changeme | |
- CONCOURSE_EXTERNAL_URL="http://10.0.1.38:8080" | |
- CONCOURSE_POSTGRES_DATA_SOURCE=postgres://concourse:changeme@concourse-db:5432/concourse?sslmode=disable | |
ports: | |
- "8080:8080" | |
volumes: | |
- ./keys/web:/concourse-keys | |
concourse-worker: | |
image: concourse/concourse | |
command: worker | |
privileged: true | |
environment: | |
- CONCOURSE_TSA_HOST=concourse-web | |
- CONCOURSE_BAGGAGECLAIM_ADDRESS=concourse-worker | |
- CONCOURSE_BAGGAGECLAIM_FORWARD_ADDRESS=concourse-worker | |
- CONCOURSE_GARDEN_ADDRESS=concourse-worker | |
- CONCOURSE_GARDEN_FORWARD_ADDRESS=concourse-worker | |
# These two lines below are important - you only need one, but this is what makes things work! | |
# I preferred to keep both values in so there's a fallback. You can specify it more than once. | |
- CONCOURSE_GARDEN_DNS_SERVER=8.8.8.8 | |
- CONCOURSE_GARDEN_DNS_SERVER=8.8.4.4 | |
depends_on: | |
- concourse-web | |
volumes: | |
- ./keys/worker:/concourse-keys | |
volumes: | |
concourse-db-data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment