-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdocker-compose.local.yml
62 lines (57 loc) · 1.39 KB
/
docker-compose.local.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
62
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: unless-stopped
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}
DB_HOST: ${DB_HOST}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
restart: unless-stopped
db:
container_name: gitpab-db
image: postgres
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
restart: unless-stopped