generated from Websoft9test/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (41 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
47 lines (41 loc) · 1.15 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
# image: https://hub.docker.com/r/gitlab/gitlab-ce
# docs: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/docker
# postgresql is in this container
version: '3.8'
services:
gitlab:
image: gitlab/gitlab-$APP_EDITION:$APP_VERSION
container_name: "$APP_NAME"
hostname: "$APP_URL"
environment:
GITLAB_OMNIBUS_CONFIG: |
# external_url rule: the protocol must be http://, can not use https://
# external_url 'http://$APP_URL'
gitlab_rails['gitlab_shell_ssh_port'] = 22
# Add any other gitlab.rb configuration here, each on its own line
# other
shm_size: '256m'
restart: always
ports:
- '${APP_HTTP_PORT}:80'
- '23:22'
volumes:
- gitlab_config:/etc/gitlab
- gitlab_logs:/var/log/gitlab
- gitlab_data:/var/opt/gitlab
runner:
image: gitlab/gitlab-runner:latest
container_name: $APP_NAME-runner
restart: always
volumes:
- gitlab_runner:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
networks:
default:
name: ${APP_NETWORK}
external: true
volumes:
gitlab_config:
gitlab_logs:
gitlab_data:
gitlab_runner: