-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
42 lines (41 loc) · 1.12 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
version: '3.5'
services:
gitlab:
image: alpinelinux/alpine-docker-gitlab
build: gitlab
hostname: ${GITLAB_HOSTNAME}
restart: always
volumes:
- /srv/docker/gitlab/repositories:/home/git/repositories
- /srv/docker/gitlab/config:/etc/gitlab
- /srv/docker/gitlab/log:/var/log
- /srv/docker/gitlab/builds:/home/git/gitlab/builds
- /srv/docker/gitlab/shared:/home/git/gitlab/shared
- /srv/docker/gitlab/uploads:/home/git/gitlab/public/uploads
- /srv/docker/gitlab/plugins:/home/git/gitlab/plugins
ports:
- "2222:22"
- "8080:80"
depends_on:
- postgres
- redis
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- GITLAB_ROOT_PASSWORD
- GITLAB_BACKUP_SKIP
- GITLAB_USE_PUMA
postgres:
image: postgres:11-alpine
restart: always
volumes:
- /srv/docker/gitlab/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
redis:
image: redis:5-alpine
restart: always
volumes:
- /srv/docker/gitlab/redis:/data
entrypoint: redis-server --appendonly yes