-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.46 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
63
64
65
66
67
68
69
70
version: '3'
services:
puppet:
build:
context: .
dockerfile: Dockerfile.puppet
restart: always
container_name: puppet
ports:
- 8140
volumes:
- ./puppet/ssl:/etc/puppetlabs/puppet/ssl/
- ./puppet/serverdata:/opt/puppetlabs/server/data/puppetserver/
redis:
restart: always
image: sameersbn/redis:latest
command:
- --loglevel warning
volumes:
- /srv/docker/gitlab/redis:/var/lib/redis:Z
postgresql:
restart: always
image: sameersbn/postgresql:9.6-2
volumes:
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm
gitlab:
restart: always
image: sameersbn/gitlab:9.0.5
depends_on:
- redis
- postgresql
ports:
- "10080:80"
- "10022:22"
#volumes:
#- /srv/docker/gitlab/gitlab:/home/git/data:Z
env_file:
- gitlab.env
gitlab-cli:
build:
context: .
dockerfile: Dockerfile.gitlab-cli
args:
GITLAB: gitlab
container_name: gitlab-cli
depends_on:
- gitlab
environment:
- GITLAB_API_ENDPOINT=http://gitlab/api/v4
- GITLAB_API_PRIVATE_TOKEN=$TOKEN
command: create_project test
runner:
restart: always
image: gitlab/gitlab-runner
depends_on:
- gitlab
volumes:
- ./data/gitlab-runner:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock