forked from jfrog/terraform-provider-artifactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·165 lines (165 loc) · 5.02 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
version: '3'
services:
artifactory:
image: ${DOCKER_REGISTRY}/jfrog/artifactory-pro:${ARTIFACTORY_VERSION}
environment:
- JF_ROUTER_ENTRYPOINTS_EXTERNALPORT=${JF_ROUTER_ENTRYPOINTS_EXTERNALPORT}
ports:
- ${JF_ROUTER_ENTRYPOINTS_EXTERNALPORT}:${JF_ROUTER_ENTRYPOINTS_EXTERNALPORT} #
- 8081:8081 # for artifactory communication
volumes:
- ${ROOT_DATA_DIR}/artifactory/var:/var/opt/jfrog/artifactory
- /etc/localtime:/etc/localtime:ro
restart: always
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
mongodb:
image: ${DOCKER_REGISTRY}/jfrog/xray-mongo:3.2.6
ports:
- ${JF_THIRD_PARTY_BIND_IP}:27017:27017
entrypoint: /bin/bash -c "chmod 777 /data/logs; /entrypoint.sh --logpath /data/logs/xray-mongo.log --auth"
volumes:
- ${ROOT_DATA_DIR}/xray/var/data/mongodb/logs:/data/logs
- ${ROOT_DATA_DIR}/xray/var/data/mongodb/configdb:/data/configdb
- ${ROOT_DATA_DIR}/xray/var/data/mongodb/db:/data/db
- /etc/localtime:/etc/localtime:ro
router:
image: ${DOCKER_REGISTRY}/jfrog/router:${ROUTER_VERSION}
user: "${XRAY_USER}:${XRAY_USER}"
environment:
- JF_ROUTER_TOPOLOGY_LOCAL_REQUIREDSERVICETYPES=jfxr,jfxidx,jfxana,jfxpst
- JF_ROUTER_ENTRYPOINTS_EXTERNALPORT=${JF_XRAY_ROUTER_ENTRYPOINTS_EXTERNALPORT}
ports:
- ${JF_XRAY_ROUTER_ENTRYPOINTS_EXTERNALPORT}:${JF_XRAY_ROUTER_ENTRYPOINTS_EXTERNALPORT} # for router communication
volumes:
- ${ROOT_DATA_DIR}/xray/var:/var/opt/jfrog/router
- /etc/localtime:/etc/localtime:ro
restart: always
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
xray-server:
image: ${DOCKER_REGISTRY}/jfrog/xray-server:${XRAY_VERSION}
volumes:
- ${ROOT_DATA_DIR}/xray/var:/var/opt/jfrog/xray
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: service:router
ulimits:
nproc: 65535
nofile:
hard: 40000
soft: 32000
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
xray-indexer:
image: ${DOCKER_REGISTRY}/jfrog/xray-indexer:${XRAY_VERSION}
volumes:
- ${ROOT_DATA_DIR}/xray/var:/var/opt/jfrog/xray
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: service:router
ulimits:
nproc: 65535
nofile:
hard: 40000
soft: 32000
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
xray-analysis:
image: ${DOCKER_REGISTRY}/jfrog/xray-analysis:${XRAY_VERSION}
volumes:
- ${ROOT_DATA_DIR}/xray/var:/var/opt/jfrog/xray
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: service:router
ulimits:
nproc: 65535
nofile:
hard: 40000
soft: 32000
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
xray-persist:
image: ${DOCKER_REGISTRY}/jfrog/xray-persist:${XRAY_VERSION}
volumes:
- ${ROOT_DATA_DIR}/xray/var:/var/opt/jfrog/xray
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: service:router
ulimits:
nproc: 65535
nofile:
hard: 40000
soft: 32000
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
rabbitmq:
image: ${DOCKER_REGISTRY}/jfrog/xray-rabbitmq:3.8.3-management
hostname: $HOST_ID
entrypoint: ""
command: /bin/bash -c " (/setRabbitCluster.sh &) && docker-entrypoint.sh 'rabbitmq-server'"
ports:
- ${JF_THIRD_PARTY_BIND_IP}:5672:5672
- 15672:15672
- 4369:4369
- ${JF_THIRD_PARTY_BIND_IP}:25672:25672
volumes:
- ${ROOT_DATA_DIR}/xray/app/third-party/rabbitmq/setRabbitCluster.sh:/setRabbitCluster.sh
- ${ROOT_DATA_DIR}/xray/app/third-party/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ${ROOT_DATA_DIR}/xray/var/data/rabbitmq:/var/lib/rabbitmq
- /etc/localtime:/etc/localtime:ro
restart: always
extra_hosts:
- "${JF_SHARED_RABBITMQ_ACTIVE_NODE_NAME}:${JF_SHARED_RABBITMQ_ACTIVE_NODE_IP}"
environment:
- JF_SHARED_RABBITMQ_ACTIVE_NODE_NAME=${JF_SHARED_RABBITMQ_ACTIVE_NODE_NAME}
- JF_SHARED_RABBITMQ_CLEAN=N # should be in sync with shared.rabbitMq.clean
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
postgres:
image: ${DOCKER_REGISTRY}/postgres:12.5-alpine
environment:
- POSTGRES_HOME="/postgres"
- POSTGRES_PASSWORD=__REPLACE_POSTGRES_PASSWORD__
ports:
- 5432:5432
volumes:
- ${ROOT_DATA_DIR}/artifactory/var/data/postgres/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
restart: always
logging:
driver: json-file
options:
max-size: "50m"
max-file: "10"
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000