-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 1.61 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
version: "3"
services:
gitlab:
restart: always
image: ghcr.io/genshen/docker-gitlab/gitlab-ce:15.11.12
container_name: gitlab_ce
depends_on:
- redis
- postgresql
ports:
- ":::10080:8181"
- ":::2222:22"
environment:
- WORKHORSE_LISTEN_NETWORK=tcp # or unix
- GITLAB_PAGES=true
volumes:
- ./config:/etc/gitlab
- ./data/gitlab:/gitlab/data
- ./data/gitlab-pages/shared:/gitlab/gitlab-pages:z
- ./data/gitlab/gitlab-logs:/var/log/gitlab
gitlab-pages:
restart: always
image: ghcr.io/genshen/docker-gitlab/gitlab-ce:15.11.12
container_name: gitlab-pages
command: ./bin/gitlab-pages -config /etc/gitlab/pages.conf # config file template is at config/page.conf.
# command: ./bin/gitlab-pages -listen-http ":8080" -pages-root /home/git/gitlab-pages/pages -pages-domain example.io
ports:
- ":::8090:8080"
volumes:
- ./config:/etc/gitlab
# - ./data/gitlab-pages/gitlab-pages.log:/home/git/gitlab/gitlab-pages.log
- ./data/gitlab-pages/shared:/home/git/gitlab/shared/pages:z
redis:
restart: always
image: redis:6.2.14
container_name: redis
command:
- --loglevel warning
volumes:
- ./data/redis:/var/lib/redis:Z
postgresql:
restart: always
build:
context: .
dockerfile: Dockerfile-pg-with-pg_trgm
image: postgresql-with-pg_trgm
container_name: postgresql
volumes:
- ./data/postgresql:/var/lib/postgresql/data:Z
environment:
- POSTGRES_USER=git
- POSTGRES_PASSWORD=secure_password
- POSTGRES_DB="gitlabhq_production"
- PGDATA=/var/lib/postgresql/data