-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.56 KB
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
# docker-compose.yml
#
# This Docker Compose file is designed for local executions and end-to-end (E2E) testing.
# It provides the necessary services to run the application locally and execute the tests
# located in the `tests` folder. The services include:
#
# 1. **Postgres**: A PostgreSQL database used as the primary datastore for the application.
# - Accessible on port 5432.
# - Preconfigured with a database, user, and password for local use.
#
# 2. **OCI Registry**: A local OCI (Open Container Initiative) registry for managing plugins.
# - Accessible on port 5000.
# - Stores plugin artifacts locally in the `.oci` directory.
#
# Usage:
# - **Local Development**: Run `docker-compose up` to start all services locally.
# - **E2E Tests**: Ensure this file is used to spin up the required services before running tests in the `tests` folder.
#
# Notes:
# - The `volumes` section ensures data persistence for the OCI registry.
# - Environment variables are used to configure services for local execution.
services:
postgres:
image: postgres:18.1
container_name: postgres-container
environment:
POSTGRES_DB: staticreg
POSTGRES_USER: staticreg
POSTGRES_PASSWORD: password
expose:
- "5432"
ports:
- "5432:5432"
oci-registry:
image: registry:3
container_name: oci-registry
expose:
- "5000"
ports:
- "5000:5000"
volumes:
- .oci:/var/lib/registry
- ./registry.yml:/etc/distribution/config.yml:ro
environment:
OTEL_TRACES_EXPORTER: "none"
REGISTRY_LOG_LEVEL: "info"