-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (39 loc) · 1000 Bytes
/
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
version: '3'
services:
gitea:
image: gitea/gitea:1.15.7
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- INSTALL_LOCK=true
restart: always
volumes:
- ./persistence/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "22:22" # can conflict with a local ssh server
nexus:
image: sonatype/nexus3:3.37.0
container_name: nexus
volumes:
- ./persistence/nexus:/nexus-data
ports:
- "8081:8081"
jenkins:
build: ./jenkins
container_name: jenkins
# user: root # TODO I guess not so safe
# privileged: true
environment:
- CASC_JENKINS_CONFIG=/var/config/jcasc.yaml
# - JENKINS_USER=502 # TODO
ports:
- 8080:8080
- 50000:50000
volumes:
- ./persistence/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- ./jcasc.yaml:/var/config/jcasc.yaml