Skip to content

Instantly share code, notes, and snippets.

@tprobinson
Created April 1, 2020 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tprobinson/66eb6cbb4e4a45b8b5022c2a0262a69e to your computer and use it in GitHub Desktop.
Save tprobinson/66eb6cbb4e4a45b8b5022c2a0262a69e to your computer and use it in GitHub Desktop.
Censored version of Concourse launch
version: '3'
services:
db:
image: postgres:9.5
restart: always
environment:
POSTGRES_DB: concourse
POSTGRES_USER: concourse
POSTGRES_PASSWORD: changeme
PGDATA: /data
volumes:
- ./volumes/db:/data:rw
web:
image: concourse/concourse:5.6
restart: always # required so that it retries until concourse-db comes up
command: [
web,
--add-local-user, "concourse:<omitted>", --main-team-local-user, concourse,
--add-local-user, "admin:<omitted>",
# omitted other users here
--prometheus-bind-ip, "0.0.0.0",
--prometheus-bind-port, "9391",
]
depends_on:
- db
expose:
- 8080
ports:
- 2222:2222
- 9391:9391
volumes:
- ./volumes/keys/web:/concourse-keys:ro
environment:
CONCOURSE_EXTERNAL_URL: https://concourse.mydomain.com
CONCOURSE_POSTGRES_HOST: db
CONCOURSE_POSTGRES_USER: concourse
CONCOURSE_POSTGRES_PASSWORD: changeme
CONCOURSE_POSTGRES_DATABASE: concourse
VIRTUAL_HOST: concourse.mydomain.com
VIRTUAL_PORT: 8080
CONCOURSE_BITBUCKET_CLOUD_CLIENT_ID: <omitted>
CONCOURSE_BITBUCKET_CLOUD_CLIENT_SECRET: <omitted>
CONCOURSE_CONTAINER_PLACEMENT_STRATEGY: limit-active-tasks
CONCOURSE_MAX_ACTIVE_TASKS_PER_WORKER: 2
CONCOURSE_ENABLE_LIDAR: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment