-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
61 lines (56 loc) · 1.32 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
58
59
60
61
version: "3.7"
volumes:
db: {}
services:
nginx:
container_name: gitpab-nginx
build:
context: .
dockerfile: docker/php/Dockerfile
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- ${HTTP_PORT}:80
depends_on:
- php
environment:
GITLAB_PRIVATE_TOKEN: ${GITLAB_PRIVATE_TOKEN}
GITLAB_RESTRICTIONS_PROJECT_IDS: ${GITLAB_RESTRICTIONS_PROJECT_IDS}
GITLAB_HOST: ${GITLAB_HOST}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
restart: always
php:
container_name: gitpab-php
build:
context: .
dockerfile: docker/php/Dockerfile
target: app
environment:
GITLAB_PRIVATE_TOKEN: ${GITLAB_PRIVATE_TOKEN}
GITLAB_RESTRICTIONS_PROJECT_IDS: ${GITLAB_RESTRICTIONS_PROJECT_IDS}
GITLAB_HOST: ${GITLAB_HOST}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
restart: always
db:
container_name: gitpab-db
image: postgres
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_DB: gitpab
POSTGRES_USER: gitpab
POSTGRES_PASSWORD: gitpab
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
restart: always