-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.55 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
services:
# example docker compose configuration for testing and development
vlc:
build: .
ports:
- "8000:8000"
depends_on:
pg:
condition: service_started
minio:
condition: service_healthy
environment:
DJANGO_SETTINGS_MODULE: "virtual_library_card.settings.dev"
DJANGO_LOG_LEVEL: "DEBUG"
VLC_DEV_DB_PORT: "5432"
VLC_DEV_DB_HOST: "pg"
VLC_DEV_AWS_S3_ENDPOINT_URL: "http://minio:9000"
VLC_DEV_AWS_S3_CUSTOM_DOMAIN: "localhost:9000/vlc-test"
VLC_DEV_AWS_S3_URL_PROTOCOL: "http:"
SUPERUSER_EMAIL: "[email protected]"
SUPERUSER_PASSWORD: "test"
pg:
image: "postgres:16"
environment:
POSTGRES_USER: vlc
POSTGRES_PASSWORD: test
POSTGRES_DB: virtual_library_card_dev
# AWS RDS requires SSL, so we enable SSL for the database with a self-signed snakeoil cert
# so that this database mimics the production databases as closely as we can.
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
minio:
image: "bitnami/minio:2023.2.27"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: "vlc-minio"
MINIO_ROOT_PASSWORD: "123456789"
MINIO_DEFAULT_BUCKETS: "vlc-test:download"
MINIO_SCHEME: "http"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
start_period: 30s
timeout: 20s
retries: 3