-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
64 lines (61 loc) · 1.87 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
services:
libreg_local_db:
container_name: libreg_local_db
build:
context: .
target: libreg_local_db
volumes:
- local_db_data:/var/lib/postgresql/data
ports:
- "5433:5433"
environment:
- PGPORT=5433
command: >
-c ssl=on
-c ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
-c ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
libreg_webapp:
container_name: libreg_webapp
depends_on:
libreg_local_db:
condition: service_started
libreg_minio:
condition: service_healthy
build:
context: .
target: libreg_local
ports:
- "80:80"
environment:
- SIMPLIFIED_TEST_DATABASE=postgresql://simplified_test:simplified_test@libreg_local_db:5433/simplified_registry_test
# AWS RDS Postgres 16+ enables SSL by default so we require ssl here in order to mirror the production environment
# as closely as possible for our dev instance.
- SIMPLIFIED_PRODUCTION_DATABASE=postgresql://simplified:simplified@libreg_local_db:5433/simplified_registry_dev?sslmode=require
- FLASK_ENV=development
- AWS_ACCESS_KEY_ID=TEST
- AWS_SECRET_ACCESS_KEY=testpassword
- SIMPLIFIED_AWS_S3_ENDPOINT_URL=http://minio:9000
- SIMPLIFIED_AWS_S3_BUCKET_NAME=registry
volumes:
- type: bind
source: .
target: /apps/library-registry
read_only: true
libreg_minio:
container_name: minio
image: bitnami/minio:2022.3.3
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ACCESS_KEY=TEST
- MINIO_SECRET_KEY=testpassword
- MINIO_DEFAULT_BUCKETS=registry:download
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
start_period: 30s
timeout: 20s
retries: 3
volumes:
local_db_data: