Last active
March 9, 2018 09:30
-
-
Save VireshDoshi/21eac6903aac9887e8ea7395c1649bc5 to your computer and use it in GitHub Desktop.
concourse ci docker compose file
This file contains hidden or 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.6 | |
environment: | |
POSTGRES_DB: concourse | |
POSTGRES_USER: concourse | |
POSTGRES_PASSWORD: changeme | |
PGDATA: /database | |
concourse-web: | |
image: concourse/concourse | |
links: [concourse-db] | |
command: web | |
depends_on: [concourse-db] | |
ports: ["8083:8080"] | |
volumes: ["./keys/web:/concourse-keys"] | |
restart: unless-stopped # required so that it retries until concourse-db comes up | |
environment: | |
CONCOURSE_BASIC_AUTH_USERNAME: concourse | |
CONCOURSE_BASIC_AUTH_PASSWORD: changeme | |
CONCOURSE_EXTERNAL_URL: http://127.0.0.1:8083 | |
CONCOURSE_POSTGRES_HOST: concourse-db | |
CONCOURSE_POSTGRES_USER: concourse | |
CONCOURSE_POSTGRES_PASSWORD: changeme | |
CONCOURSE_POSTGRES_DATABASE: concourse | |
dns: | |
- 8.8.8.8 | |
- 4.4.4.4 | |
concourse-worker: | |
image: concourse/concourse | |
privileged: true | |
links: [concourse-web] | |
depends_on: [concourse-web] | |
command: worker | |
volumes: ["./keys/worker:/concourse-keys"] | |
environment: | |
CONCOURSE_TSA_HOST: concourse-web | |
CONCOURSE_GARDEN_DNS_SERVER: 8.8.8.8 | |
dns: | |
- 8.8.8.8 | |
- 4.4.4.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment