This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
85 lines (79 loc) · 2.01 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
version: '2.3'
services:
clair-database:
image: postgres:10-alpine
container_name: clair-database
environment:
POSTGRES_DB: clair
POSTGRES_USER: clair
POSTGRES_PASSWORD: clair
ports:
- 5432:5432
restart: unless-stopped
volumes:
- clair-database-data:/var/lib/postgresql/data:rw
clair:
image: quay.io/coreos/clair:v2.0.5
container_name: clair
command: ["-config", "/etc/clair/clair.cfg.yml"]
depends_on:
- clair-database
links:
- clair-database:database.clair.local
ports:
- 6060-6061:6060-6061
restart: unless-stopped
volumes:
- ./etc:/etc/clair:ro
cst-database:
image: mongo:4
container_name: cst-database
environment:
MONGO_INITDB_ROOT_USERNAME: ${CST_DATABASE_USER?:"Please set the CST_DATABASE_USER (you can use .env file)"}
MONGO_INITDB_ROOT_PASSWORD: ${CST_DATABASE_PASSWORD?:"Please set the CST_DATABASE_PASSWORD (you can use .env file)"}
ports:
- 27017:27017
restart: unless-stopped
volumes:
- cst-database-data:/data/db
cst-server:
image: tsuru/cst
container_name: cst-server
command:
- server
- --database
- mongodb://${CST_DATABASE_USER}:${CST_DATABASE_PASSWORD}@database.cst.local:27017/cst?authSource=admin
- --cert-file
- /etc/ssl/cst/cert.pem
- --key-file
- /etc/ssl/cst/key.pem
depends_on:
- cst-database
links:
- cst-database:database.cst.local
user: root
ports:
- 8443:8443
restart: unless-stopped
volumes:
- ./.certs:/etc/ssl/cst:ro
cst-worker:
image: tsuru/cst
container_name: cst-worker
command:
- worker
- --database
- mongodb://${CST_DATABASE_USER}:${CST_DATABASE_PASSWORD}@database.cst.local:27017/cst?authSource=admin
- --clair-address
- http://clair.local:6060
depends_on:
- clair
- cst-database
links:
- clair:clair.local
- cst-database:database.cst.local
restart: unless-stopped
volumes:
clair-database-data:
cst-database-data: