-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
113 lines (109 loc) · 2.98 KB
/
docker-compose.yaml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.8'
networks:
internal_network:
internal: true
external_network:
driver: bridge
services:
# jenkins - for workflow manager
jenkins:
image: bitnami/jenkins:2.462.3
user: root
container_name: ape-jenkins
platform: linux/amd64
networks:
- internal_network
- external_network
ports:
- target: 8080
published: 9800
protocol: tcp
volumes:
- ~/:/var/jenkins_home # -v $HOME/mcmp/oss/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker # -v $(which docker):/usr/bin/docker
environment:
JENKINS_USERNAME: admin
JENKINS_PASSWORD: 123456 # Please CHANGE ME
JENKINS_PLUGINS: >-
workflow-api,
swarm,
authorize-project,
antisamy-markup-formatter,
pipeline-github-lib,
pipeline-rest-api,
git,
github-branch-source,
gradle,
pipeline-model-definition,
pipeline-build-step,
workflow-aggregator,
matrix-project,
email-ext,
durable-task,
checks-api,
build-timeout,
timestamper,
ws-cleanup,
ssh-slaves,
ssh-agent,
publish-over-ssh
healthcheck: # for application-manager
test: [ "CMD", "curl", "-f", "http://localhost:8080/login" ]
interval: 1m
timeout: 5s
retries: 3
start_period: 10s
# sonatype nexus - for application manager
sonatype-nexus:
image: sonatype/nexus3:latest
container_name: nexus-repository
platform: linux/amd64
networks:
- internal_network
- external_network
ports:
- target: 8081
published: 8081
protocol: tcp
- target: 5000 # container-repository
published: 5000
protocol: tcp
volumes:
- ~/:/nexus-data/blobs/
environment:
NEXUS_SECURITY_RANDOMPASSWORD: 'false'
NEXUS_SECURITY_INITIAL_PASSWORD: 123456 # Please CHANGE ME
healthcheck: # for application-manager
test: [ "CMD", "curl", "-f", "http://localhost:8081/login" ]
interval: 1m
timeout: 5s
retries: 3
start_period: 10s
# application-manager
mc-application-manager:
image: cloudbaristaorg/mc-application-manager:edge
container_name: application-manager
networks:
- external_network
ports:
- target: 18084
published: 18084
protocol: tcp
volumes:
- ./db/application:/db/application
environment:
- DDL_AUTO=update # create-drop or update
- DB_USER=application # Please CHANGE ME
- DB_PASS=application!23 # Please CHANGE ME
- SQL_DATA_INIT=never # or never or always
- TUMBLEBUG_URL=mc-infra-manager
- TUMBLEBUG_PORT=1323
- TUMBLEBUG_ID=default
- TUMBLEBUG_PASSWORD=default
healthcheck: # for cb-application-manager
test: ["CMD", "nc", "-vz", "localhost", "1324"]
interval: 1m
timeout: 5s
retries: 3
start_period: 10s