-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
92 lines (85 loc) · 2.25 KB
/
docker-compose.dev.yaml
File metadata and controls
92 lines (85 loc) · 2.25 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
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
86
87
88
89
90
91
92
name: messenger_dev
services:
messenger_service:
image: messenger_service:latest
container_name: awg.dev.messenger_service
ports:
- 8000:8000
environment:
ENV: dev
RUST_LOG: debug
RUST_BACKTRACE: 1
CLIENT_ID: /secrets/auth0/client_id
CLIENT_SECRET: /secrets/auth0/client_secret
REDIRECT_URL: http://localhost:8000/callback
ISSUER: https://dcadea.auth0.com/
AUDIENCE: https://messenger.angelwing.io/api/v1
REQUIRED_CLAIMS: iss,sub,aud,exp,permissions
REDIS_HOST: awg.dev.redis
POSTGRES_HOST: awg.dev.postgres
POSTGRES_DB: messenger
NATS_HOST: awg.dev.nats
volumes:
- ./docker-volumes/dev/messenger_service/service.log:/usr/local/bin/service.log
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
nats:
condition: service_healthy
minio:
condition: service_healthy
postgres:
image: postgres:alpine
container_name: awg.dev.postgres
ports:
- 5432:5432
environment:
POSTGRES_DB: messenger
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./docker-volumes/dev/postgres/data:/var/lib/postgresql/data
redis:
image: redis/redis-stack:latest
container_name: awg.dev.redis
ports:
- 6379:6379
- 8001:8001
volumes:
- ./conf/dev/redis.conf:/usr/local/etc/redis/redis.conf
- ./docker-volumes/dev/redis/data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
nats:
image: nats:2-alpine
container_name: awg.dev.nats
ports:
- 4222:4222
- 8222:8222
healthcheck:
test: wget http://localhost:8222/healthz -q -S -O -
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
container_name: awg.dev.minio
command: server --console-address ":9001" /data/minio
ports:
- 9000:9000
- 9001:9001
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ./docker-volumes/dev/minio/data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5