-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.66 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
65
66
67
68
69
70
71
72
73
74
75
version: '3.8'
volumes:
db:
storage:
services:
server:
build:
dockerfile: Dockerfile.dev
context: .
restart: unless-stopped
ports:
- "8080:8080"
environment:
RUST_LOG: info
TELEMETRY: "true"
DATABASE_URL: "postgresql://lyonkit:lyonkit@postgres:5432/lyonkit"
S3__ENDPOINT: "http://s3:9000"
S3__BASE_URL: "http://localhost:9000"
S3__CREDENTIALS__ACCESS_KEY_ID: lyonkit
S3__CREDENTIALS__SECRET_ACCESS_KEY: lyonkit-s3-secret
S3__REGION: us-west-1
OTEL_EXPORTER_JAEGER_AGENT_HOST: jaeger
OTEL_EXPORTER_JAEGER_AGENT_PORT: 6831
CORS: http://localhost
depends_on:
- postgres
- s3
- jaeger
volumes:
- .:/lyonkit-api
- /lyonkit-api/target/
postgres:
image: postgres:16.1-alpine
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/
command: postgres -N 500
environment:
POSTGRES_USER: lyonkit
POSTGRES_PASSWORD: lyonkit
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
s3:
image: bitnami/minio:2023
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
volumes:
- storage:/data
environment:
MINIO_ROOT_USER: lyonkit
MINIO_ROOT_PASSWORD: lyonkit-s3-secret
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
jaeger:
image: jaegertracing/all-in-one:latest
restart: unless-stopped
ports:
- "16686:16686"