-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (58 loc) · 1.28 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
version: '2'
networks:
ankins:
driver: bridge
services:
jenkins:
image: jenkins
restart: always
container_name: jenkins
privileged: true
networks:
- jenkins
depends_on:
- anchore
ports:
- "8080:8080"
- "50000:50000"
volumes:
- "/home/docker/arch/jenkins/files:/var/jenkins_home:rw"
- "/var/run/docker.sock:/var/run/docker.sock"
anchore:
image: docker.io/anchore/anchore-engine:latest
privileged: true
restart: always
container_name: anchore
depends_on:
- anchore-db
networks:
- jenkins
ports:
- "8228:8228"
- "8338:8338"
volumes:
- /home/docker/arch/anchore/config:/config/:z
logging:
driver: "json-file"
options:
max-size: 100m
environment:
- ANCHORE_HOST_ID=dockerhostid-anchore
- ANCHORE_ENDPOINT_HOSTNAME=anchore
anchore-db:
image: "postgres:9"
container_name: anchore-db
restart: always
volumes:
- /home/docker/arch/anchore/db:/var/lib/postgresql/data/pgdata/:z
networks:
- jenkins
environment:
- POSTGRES_PASSWORD=changeme
- PGDATA=/var/lib/postgresql/data/pgdata/
logging:
driver: "json-file"
options:
max-size: 100m
ports:
- "2345:5432"