|
1 | | -version: '3' |
2 | | - |
3 | | -volumes: |
4 | | - gitlab_postgresql: |
5 | | - gitlab_redis: |
6 | | - gitlab_data: |
7 | | - ldap_db: |
8 | | - ldap_static: |
9 | | - |
10 | | -networks: |
11 | | - adop: |
12 | | - driver: bridge |
13 | | - |
14 | | -services: |
15 | | - redis: |
16 | | - restart: always |
17 | | - image: sameersbn/redis:latest |
18 | | - command: |
19 | | - - --loglevel warning |
20 | | - volumes: |
21 | | - - gitlab_redis:/var/lib/redis:Z |
22 | | - networks: |
23 | | - - adop |
24 | | - |
25 | | - postgresql: |
26 | | - restart: always |
27 | | - image: sameersbn/postgresql:9.6-2 |
28 | | - volumes: |
29 | | - - gitlab_postgresql:/var/lib/postgresql:Z |
30 | | - environment: |
31 | | - - DB_USER=gitlab |
32 | | - - DB_PASS=password |
33 | | - - DB_NAME=gitlabhq_production |
34 | | - - DB_EXTENSION=pg_trgm |
35 | | - networks: |
36 | | - - adop |
37 | | - |
38 | | - gitlab: |
39 | | - restart: always |
40 | | - image: sameersbn/gitlab:11.0.3 |
41 | | - depends_on: |
42 | | - - redis |
43 | | - - postgresql |
44 | | - ports: |
45 | | - - "10080:80" |
46 | | - - "10022:22" |
47 | | - volumes: |
48 | | - - gitlab_data:/home/git/data:Z |
49 | | - networks: |
50 | | - - adop |
51 | | - environment: |
52 | | - - DEBUG=false |
53 | | - - DB_ADAPTER=postgresql |
54 | | - - DB_HOST=postgresql |
55 | | - - DB_PORT=5432 |
56 | | - - DB_USER=gitlab |
57 | | - - DB_PASS=password |
58 | | - - DB_NAME=gitlabhq_production |
59 | | - - REDIS_HOST=redis |
60 | | - - REDIS_PORT=6379 |
61 | | - - GITLAB_HTTPS=false |
62 | | - - SSL_SELF_SIGNED=false |
63 | | - - GITLAB_HOST=localhost |
64 | | - - GITLAB_PORT=10080 |
65 | | - - GITLAB_SSH_PORT=10022 |
66 | | - - GITLAB_RELATIVE_URL_ROOT= |
67 | | - - GITLAB_ROOT_PASSWORD=123qwe123 |
68 | | - - GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string |
69 | | - - GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alphanumeric-string |
70 | | - - GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alphanumeric-string |
71 | | - - LDAP_ENABLED=true |
72 | | - - LDAP_LABEL=LDAP |
73 | | - - LDAP_HOST=ldap |
74 | | - - LDAP_PORT=389 |
75 | | - - LDAP_UID=uid |
76 | | - - LDAP_METHOD=plain |
77 | | - - LDAP_BIND_DN=cn=admin,dc=ldap,dc=adop,dc=com |
78 | | - - LDAP_PASS=123qwe123 |
79 | | - - LDAP_ACTIVE_DIRECTORY=false |
80 | | - - LDAP_ALLOW_USERNAME_OR_EMAIL_LOGIN=false |
81 | | - - LDAP_BLOCK_AUTO_CREATED_USERS=false |
82 | | - - LDAP_BASE=dc=ldap,dc=adop,dc=com |
83 | | - |
| 1 | +gitlab: |
| 2 | + image: 'gitlab/gitlab-ce:latest' |
| 3 | + restart: always |
| 4 | + environment: |
| 5 | + GITLAB_ROOT_PASSWORD: '123qwe123' |
| 6 | + GITLAB_OMNIBUS_CONFIG: | |
| 7 | + nginx['listen_port'] = 10080 |
| 8 | + ports: |
| 9 | + - '10080:10080' |
| 10 | + volumes: |
| 11 | + - '/srv/gitlab/config:/etc/gitlab' |
| 12 | + - '/srv/gitlab/logs:/var/log/gitlab' |
| 13 | + - '/srv/gitlab/data:/var/opt/gitlab' |
0 commit comments