-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
102 lines (98 loc) · 2.32 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
networks:
lab:
driver: bridge
services:
gitlab:
image: gitlab/gitlab-ce:17.6.1-ce.0
container_name: gitlab-server-1
restart: always
environment:
GITLAB_ROOT_EMAIL: [email protected]
GITLAB_ROOT_PASSWORD: f0ll0wth3whit3r@@BB1t
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:8000'
nginx['listen_port'] = 8000
prometheus['enable'] = false
node_exporter['enable'] = false
ports:
- 8000:8000
volumes:
- ./vols/gitlab/config:/etc/gitlab
- ./vols/gitlab/data:/var/opt/gitlab
deploy:
resources:
limits:
cpus: 2.0
memory: 16G
networks:
- lab
gitlab-runner:
image: cloudacademydevops/gitlab-runner:java-v1
container_name: gitlab-runner-1
restart: always
volumes:
- ./vols/gitlab/runner/config:/etc/gitlab-runner:z
- /var/run/docker.sock:/var/run/docker.sock
networks:
- lab
postgres:
image: postgres:13.9-alpine
container_name: postgres
restart: always
environment:
- POSTGRES_DB=artifactory
- POSTGRES_USER=artifactory
- POSTGRES_PASSWORD=artifactory
ports:
- 127.0.0.1:5432:5432
volumes:
- ./vols/postgres/var/data/postgres/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
deploy:
resources:
limits:
cpus: 1.0
memory: 500M
logging:
driver: json-file
options:
max-size: 50m
max-file: 10
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
networks:
- lab
artifactory:
image: releases-docker.jfrog.io/jfrog/artifactory-oss:7.55.9
container_name: artifactory
restart: always
depends_on:
- postgres
environment:
- JF_ROUTER_ENTRYPOINTS_EXTERNALPORT=8080
ports:
- 8080:8080 # for router communication
- 8081:8081 # for artifactory communication
volumes:
- ./vols/artifactory/var:/var/opt/jfrog/artifactory
- /etc/localtime:/etc/localtime:ro
logging:
driver: json-file
options:
max-size: 50m
max-file: 10
deploy:
resources:
limits:
cpus: 2.0
memory: 4G
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
networks:
- lab