forked from eea/eea.docker.jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.15 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
master:
image: eeacms/jenkins-master:2.0
restart: always
ports:
- "80:8080"
- "50000:50000"
volumes:
- /etc/localtime:/etc/localtime:ro
volumes_from:
- master_data
links:
- postfix
environment:
- JAVA_OPTS=-Xmx2048m
master_data:
image: busybox
volumes:
- /var/jenkins_home
command: ["chown", "-v", "-R", "1000:1000", "/var/jenkins_home"]
worker:
image: eeacms/jenkins-slave-eea:2.0
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
volumes_from:
- worker_data
links:
- postgres
environment:
- JAVA_OPTS=-Xmx2048m
- JENKINS_NAME=worker
- JENKINS_RETRY=10
env_file:
- .secret
worker_data:
image: busybox
volumes:
- /var/jenkins_home/worker
command: ["chown", "-v", "-R", "1000:1000", "/var/jenkins_home/worker"]
postfix:
image: eeacms/postfix:eionet
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- MTP_HOST=ci.eionet.europa.eu
env_file:
- .secret
postgres:
image: eeacms/postgres:9.5
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_DBNAME=datafs zasync
- POSTGRES_DBUSER=zope
- POSTGRES_DBPASS=zope