-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.19 KB
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
version: '3.3'
services:
tomcat:
build:
context: .
dockerfile: Tomcat.Dockerfile
image: udacity-tomcat
container_name: udacity-tomcat
ports:
- 8080:8080
# logging:
# driver: splunk
# options:
# splunk-url: https://172.20.0.4:8088
# splunk-token: ""
# splunk-insecureskipverify: 'true'
networks:
- cluster
splunk:
environment:
- "SPLUNK_START_ARGS=--accept-license --no-prompt --answer-yes"
- "SPLUNK_USERNAME=admin"
- "SPLUNK_PASSWORD=admin123456"
hostname: splunk
image: splunk/splunk:latest
container_name: udacity-splunk
ports:
- 8000:8000
- 8088:8088
- 9997:9997
restart: always
networks:
- cluster
jenkins:
build:
context: .
dockerfile: Jenkins.Dockerfile
image: udacity-jenkins
container_name: udacity-jenkins
restart: on-failure
environment:
JENKINS_USER: ecommerce
JENKINS_PASSWORD: udacity
TOMCAT_USER: udacity
TOMCAT_PASSWORD: ecommerce
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9000:8080
networks:
- cluster
networks:
cluster:
driver: bridge