-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.infra.yml
More file actions
39 lines (36 loc) · 1.03 KB
/
docker-compose.infra.yml
File metadata and controls
39 lines (36 loc) · 1.03 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
version: '3.8'
services:
# Jenkins Settings
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins
user: root # 도커 소켓 접근 권한을 위해 root 사용
ports:
- "38080:8080" # 외부 접속 포트 38080으로 변경 (보안 준수)
- "50000:50000"
volumes:
- ./jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock # DooD 설정: Jenkins 내부에서 도커 명령 실행 가능
- /usr/bin/docker:/usr/bin/docker
- /usr/libexec/docker/cli-plugins:/usr/libexec/docker/cli-plugins
environment:
- JENKINS_OPTS=--prefix=/jenkins # Nginx 경로 설정을 위해 필수
networks:
- compay-net
restart: always
# Redis Settings
redis:
image: redis:alpine
container_name: redis-container
command: redis-server --requirepass ${REDIS_PASSWORD}
expose:
- "6379"
volumes:
- ./redis_data:/data
networks:
- compay-net
restart: always
networks:
compay-net:
name: compay-net
driver: bridge