-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (58 loc) · 1.55 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (58 loc) · 1.55 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
61
62
63
64
65
66
67
68
69
70
version: '2'
services:
gitlab:
image: gitlab/gitlab-ce:latest
container_name: gitlab
hostname: localhost
restart: always
networks:
- gitlab-server
ports:
- "80:80"
- "443:443"
- "23:22"
volumes:
- /srv/gitlab/config:/etc/gitlab
- /srv/gitlab/logs:/var/log/gitlab
- /srv/gitlab/data:/var/opt/gitlab
- ./redirect.conf:/etc/nginx/conf.d/redirect.conf
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.teasdale.link'
postgresql['enable'] = false
gitlab_rails['db_username'] = "postgres"
gitlab_rails['db_password'] = "postgres"
gitlab_rails['db_database'] = "postgres"
gitlab_rails['db_host'] = "postgres"
gitlab_rails['db_port'] = 5432
redis['enable'] = false
gitlab_rails['redis_host'] = "redis"
gitlab_rails['redis_port'] = 6379
links:
- postgres:postgres
- redis:redis
postgres:
image: postgres
container_name: postgres
hostname: postgres
restart: always
networks:
- gitlab-server
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- /srv/postgres/data:/var/lib/postgresql/data
redis:
image: redis
container_name: redis
hostname: redis
restart: always
networks:
- gitlab-server
volumes:
- /srv/redis/data:/data
networks:
gitlab-server:
driver: bridge