forked from zubroide/gitpab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 958 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 958 Bytes
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
version: "3.3"
volumes:
code: {}
db: {}
services:
nginx:
container_name: gitpab-nginx
image: nginx:alpine
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
# - /data/gitpab/nginx/ssl:/etc/ssl
- code:/var/www/html
ports:
- 8000:80
- 8443:443
depends_on:
- php
restart: unless-stopped
php:
container_name: gitpab-php
build:
context: .
dockerfile: docker/php/Dockerfile
volumes:
- code:/var/www/html
environment:
GITLAB_PRIVATE_TOKEN: ${token}
GITLAB_RESTRICTIONS_PROJECT_IDS: ${projects}
GITLAB_HOST: ${host}
APP_LOCALE: en
links:
- db
restart: unless-stopped
db:
container_name: gitpab-db
image: postgres
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_DB: gitpab
POSTGRES_USER: gitpab
POSTGRES_PASSWORD: gitpab
restart: unless-stopped