-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
101 lines (100 loc) · 2.82 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
95
96
97
98
99
100
101
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3'
services:
registry-database:
image: postgres:latest
volumes:
- registry-db-vol:/var/lib/postgresql/data/pgdata
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_DB=apigee_registry
- POSTGRES_USER=postgres
- PGUSER=postgres
- POSTGRES_PASSWORD=passw0rd
healthcheck:
test: [ "CMD-SHELL", 'pg_isready' ]
interval: 10s
timeout: 10s
retries: 6
registry-server:
image: ghcr.io/apigee/registry-server:main
ports:
- "8080:8080"
environment:
- REGISTRY_DATABASE_DRIVER=postgres
- REGISTRY_DATABASE_CONFIG="host=registry-database port=5432 user=postgres dbname=apigee_registry password=passw0rd sslmode=disable"
- REGISTRY_LOGGING_LEVEL=debug
- REGISTRY_LOGGING_FORMAT=text
- REGISTRY_PUBSUB_ENABLE=false
- REGISTRY_PUBSUB_PROJECT=
- PORT=8080
links:
- registry-database
depends_on:
registry-database:
condition: service_healthy
envoy-registry:
image: ghcr.io/apigee/registry-envoy:main
environment:
- REGISTRY_SERVER_HOST=registry-server
- REGISTRY_SERVER_PORT=8080
ports:
- "9999:9999"
- "9901:9901"
links:
- registry-server
depends_on:
- registry-server
registry-viewer:
image: ghcr.io/apigee/registry-viewer:main
environment:
- REGISTRY_SERVICE=http://localhost:9999
- SPEC_RENDERER_SERVICE=http://localhost:3000/render
- PORT=8888
ports:
- "8888:8888"
links:
- registry-server
depends_on:
- registry-server
registry-spec-renderer:
image: ghcr.io/apigee/registry-spec-renderer:main
environment:
- REGISTRY_ADDRESS=registry-server:8080
- PORT=3000
- REGISTRY_INSECURE=1
ports:
- "3000:3000"
links:
- registry-server
depends_on:
- registry-server
registry-tools:
image: ghcr.io/apigee/registry-tools:main
environment:
- REGISTRY_ADDRESS=registry-server:8080
- APG_ADMIN_ADDRESS=registry-server:8080
- REGISTRY_INSECURE=1
- APG_ADMIN_INSECURE=1
registry-mock-service:
image: ghcr.io/apigee/registry-prism-mock-server:main
ports:
- "4000:4000"
environment:
- REGISTRY_ADDRESS=registry-server:8080
- REGISTRY_INSECURE=1
- PORT=4000
volumes:
registry-db-vol: