forked from concourse/concourse-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (61 loc) · 1.54 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
services:
db:
image: postgres:10.18-alpine
environment:
POSTGRES_DB: concourse
POSTGRES_USER: concourse_user
POSTGRES_PASSWORD: concourse_pass
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
web:
image: concourse/concourse:5.8.1-ubuntu
command: web
networks:
- comms
- default
links: [db]
depends_on: [db]
ports: ["8080:8080"]
volumes: ["./keys/web:/concourse-keys"]
environment:
CONCOURSE_EXTERNAL_URL: http://${DNS_URL}:8080
CONCOURSE_POSTGRES_HOST: db
CONCOURSE_POSTGRES_USER: concourse_user
CONCOURSE_POSTGRES_PASSWORD: concourse_pass
CONCOURSE_POSTGRES_DATABASE: concourse
CONCOURSE_VAULT_CLIENT_TOKEN: ${VAULT_CLIENT_TOKEN}
CONCOURSE_VAULT_URL: http://vault:8200
CONCOURSE_ADD_LOCAL_USER: test:test
CONCOURSE_MAIN_TEAM_LOCAL_USER: test
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
worker:
image: concourse/concourse:5.8.1-ubuntu
command: worker
privileged: true
depends_on: [web]
volumes: ["./keys/worker:/concourse-keys"]
links: [web]
stop_signal: SIGUSR2
environment:
CONCOURSE_TSA_HOST: web:2222
CONCOURSE_BAGGAGECLAIM_DRIVER: ${STORAGE_DRIVER}
CONCOURSE_LOG_LEVEL: debug
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
deploy:
restart_policy:
condition: any
networks:
comms:
external: true