-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.2 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
59
60
version: '3'
services:
gitlab:
image: gitlab/gitlab-ce:latest
restart: always
hostname: localhost
privileged: true
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost'
ports:
- 80:80
- 443:443
- 22:22
- 2224:2224
volumes:
- ~/gitlab/config:/etc/gitlab
- ~/gitlab/logs:/var/log/gitlab
- ~/gitlab/data:/var/opt/gitlab
networks:
internal:
aliases:
- gitlab
jenkins:
image: jenkinsci/blueocean:latest
restart: always
ports:
- 8080:8080
- 50000:50000
volumes:
- ~/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
networks:
internal:
aliases:
- jenkins
sakila-db:
image: mysql:5.7.23
restart: always
ports:
- 6603:3306
environment:
MYSQL_DATABASE: "sakila"
MYSQL_USER: "test"
MYSQL_PASSWORD: "test"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- ./sakila-db:/docker-entrypoint-initdb.d
- ~/mysql/datadir:/var/lib/mysql
networks:
internal:
aliases:
- sakila
networks:
internal: