This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
85 lines (79 loc) · 2.27 KB
/
docker-compose.yaml
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
version: '3'
services:
# Auth service
auth:
build:
dockerfile: mock/auth/auth.dockerfile
ports:
- 8000:80
environment:
SERVER_LOG_LEVEL: info
# REST API service
api:
build:
context: ..
dockerfile: docker-compose/Dockerfile
target: development
working_dir: /app
environment:
SRPING_DATASOURCE_PASSWORD: postgres
SPRING_DATASOURCE_URL: "jdbc:postgresql://db/postgres"
SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI: "http://auth/.well-known/jwks.json"
COM_MYTIKI_L0_STORAGE_REMOTE_WORKER_ID: worker
COM_MYTIKI_L0_STORAGE_REMOTE_WORKER_SECRET: worker
COM_MYTIKI_L0_STORAGE_TOKEN_KID: 12345
COM_MYTIKI_L0_STORAGE_TOKEN_PRIVATE_KEY: MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCAG89A2jCBIelwzQasZz1tGFcXtOSrSF7YxdxQQPxNERg==
ports:
- 10507:10507
depends_on:
db:
condition: service_healthy
# Postgres database
db:
image: postgres:15.1-alpine
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data
- "../database:/docker-entrypoint-initdb.d"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
timeout: 5s
retries: 5
# S3-compat object storage
storage:
image: minio/minio
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: miniopass
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-storage:/data
command: server --console-address ":9001" /data
# CloudFlare worker (handle file uploads at the edge)
worker-upload:
build:
context: ..
dockerfile: docker-compose/Dockerfile
args: []
working_dir: /app
environment:
L0_STORAGE_ENDPOINT: "http://api:10507/api/latest/upload"
L0_STORAGE_JWT_JWKS: '{ "kty": "EC", "use": "sig", "crv": "P-256", "kid": "12345", "x": "zAq5eyNt6b25XGckC5u4whIl558xs-IzogJqjygysZo", "y": "hjwlv3xt0L10XiJASkjOFHUxI_72ZeLI378trg8pN6c" }'
REMOTE_ID: worker
REMOTE_SECRET: worker
WASABI_BUCKET: data
WASABI_REGION: us-east-1
WASABI_SERVICE: s3
WASABI_ID: root
WASABI_SECRET: miniopass
ports:
- 10508:10507
volumes:
db-data:
minio-storage: