forked from dalibo/temboard-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 loc) · 1.5 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
version: '2'
volumes:
data:
run:
services:
repository:
image: postgres:10-alpine
environment:
POSTGRES_USER: temboard
POSTGRES_PASSWORD: temboard
labels:
com.dnsdock.alias: postgres.temboard.docker
ui:
image: dalibo/temboard:latest
links:
- repository
environment:
PGHOST: repository
PGUSER: temboard
PGPASSWORD: temboard
ports:
- "8888:8888"
labels:
com.dnsdock.alias: www.temboard.docker
instance:
image: postgres:10-alpine
volumes:
- data:/var/lib/postgresql/data
- run:/var/run/postgresql
labels:
com.dnsdock.alias: instance.temboard.docker
agent:
image: dalibo/temboard-agent
environment:
HISTFILE: /usr/local/src/temboard-agent/docker-histfile
TEMBOARD_UI_URL: https://ui:8888/
TEMBOARD_HOSTNAME: instance.fqdn
TEMBOARD_KEY: key_for_agent_dev
TEMBOARD_SSL_CA: /usr/local/src/temboard-agent/share/temboard-agent_ca_certs_CHANGEME.pem
TEMBOARD_SSL_CERT: /usr/local/src/temboard-agent/share/temboard-agent_CHANGEME.pem
TEMBOARD_SSL_KEY: /usr/local/src/temboard-agent/share/temboard-agent_CHANGEME.key
volumes:
- data:/var/lib/postgresql/data
- run:/var/run/postgresql/:ro
- /usr/bin/docker:/usr/bin/docker:ro
- /var/run/docker.sock:/var/run/docker.sock
- .:/usr/local/src/temboard-agent/
links:
- instance:instance.fqdn
command: tail -f /dev/null
labels:
com.dnsdock.alias: agent.temboard.docker