-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.33 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
---
version: "3"
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
hostname: 'gitlab.home.com'
restart: always
depends_on:
- redis
- postgresql
environment:
GITLAB_OMNIBUS_CONFIG: |
postgresql['enable'] = false
redis['enable'] = false
gitlab_rails['db_username'] = "gitlab"
gitlab_rails['db_password'] = "gitlab"
gitlab_rails['db_host'] = "postgresql"
gitlab_rails['db_port'] = "5432"
gitlab_rails['db_database'] = "gitlabhq_production"
gitlab_rails['db_adapter'] = 'postgresql'
gitlab_rails['db_encoding'] = 'utf8'
gitlab_rails['redis_host'] = 'redis'
gitlab_rails['redis_port'] = '6379'
external_url 'http://gitlab.home.com:80'
gitlab_rails['gitlab_shell_ssh_port'] = 30022
ports:
- "80:80"
- "30022:22"
volumes:
- gitlab-data:/home/git/data:Z
postgresql:
restart: always
image: postgres:latest
environment:
- POSTGRES_USER=gitlab
- POSTGRES_PASSWORD=gitlab
- POSTGRES_DB=gitlabhq_production
volumes:
- postgresql-data:/var/lib/postgresql:Z
redis:
restart: always
image: redis:latest
command:
- --loglevel warning
volumes:
- redis-data:/var/lib/redis:Z
volumes:
redis-data:
postgresql-data:
gitlab-data: