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
# Example Docker Compose for Local Apicurio Registry
#
# This sets up a local Apicurio Registry instance for development and testing.
# Run with: docker-compose -f examples/docker-compose.yaml up -d
version: "3.8"
services:
# Apicurio Registry with in-memory storage
apicurio-registry:
image: apicurio/apicurio-registry-mem:2.4.14.Final
ports:
- "8080:8080"
environment:
REGISTRY_LOG_LEVEL: DEBUG
# Optional: Enable CORS for browser access
CORS_ALLOWED_ORIGINS: "*"
networks:
- apicurio
# Alternative: Apicurio Registry with PostgreSQL persistence
# Uncomment the following services for persistent storage
# postgres:
# image: postgres:13
# environment:
# POSTGRES_USER: apicurio
# POSTGRES_PASSWORD: password
# POSTGRES_DB: apicurio
# volumes:
# - postgres_data:/var/lib/postgresql/data
# networks:
# - apicurio
# apicurio-registry-sql:
# image: apicurio/apicurio-registry-sql:2.4.14.Final
# ports:
# - "8080:8080"
# environment:
# REGISTRY_DATASOURCE_URL: jdbc:postgresql://postgres:5432/apicurio
# REGISTRY_DATASOURCE_USERNAME: apicurio
# REGISTRY_DATASOURCE_PASSWORD: password
# depends_on:
# - postgres
# networks:
# - apicurio
networks:
apicurio:
driver: bridge
# volumes:
# postgres_data: