-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (94 loc) · 2.24 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Container Versions stored in '.env'
---
version: "3"
services:
init:
build:
dockerfile: Dockerfile
context: ./init/
container_name: releng-init
volumes:
- ./init/inventory.ini:/etc/ansible/inventory.ini
- ./init/playbooks:/usr/src/ansible
- init:/init/
links:
- gerrit
- nexus
ldap:
image: "osixia/openldap:$OPENLDAP_CONTAINER_VERSION"
container_name: releng-ldap
env_file: config.env
command: "--loglevel debug --copy-service"
volumes:
- ./ldap/bootstrap/groups.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-groups.ldif
ports:
- "636:636"
gerrit:
image: "openfrontier/gerrit:$GERRIT_CONTAINER_VERSION"
container_name: releng-gerrit
env_file: config.env
environment:
- VIRTUAL_HOST=gerrit.localhost
- VIRTUAL_PORT=8080
volumes:
- gerrit:/var/gerrit/review_site
expose:
- "8080"
ports:
- "29418:29418"
depends_on:
- ldap
- nginx
links:
- ldap
- nginx
nexus:
image: "sonatype/nexus:$NEXUS_CONTAINER_VERSION"
container_name: releng-nexus
env_file: config.env
environment:
- VIRTUAL_HOST=nexus.localhost
- VIRTUAL_PORT=8081
volumes:
- nexus:/sonatype-work
expose:
- "8081"
depends_on:
- nginx
links:
- nginx
# artifactory:
# image: "docker.bintray.io/jfrog/artifactory-oss:$ARTIFACTORY_CONTAINER_VERSION"
# container_name: releng-artifactory
# env_file: config.env
# environment:
# - VIRTUAL_HOST=artifactory.localhost
# - VIRTUAL_PORT=8081
# volumes:
# - artifactory:/var/opt/jfrog/artifactory
# expose:
# - "80"
# - "443"
# - "8081"
# depends_on:
# - nginx
# links:
# - nginx
postgres:
image: postgres:latest
container_name: releng-postgres
env_file: config.env
expose:
- "5432"
nginx:
image: jwilder/nginx-proxy:latest
container_name: releng-ingress
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
gerrit:
nexus:
# artifactory:
init: