-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (54 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
60 lines (54 loc) · 1.15 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
version: "3.9"
services:
postgres:
image: postgres:15
container_name: go-sync-postgres
environment:
POSTGRES_PASSWORD: secret
POSTGRES_DB: go-sync
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7
container_name: go-sync-redis
ports:
- "6379:6379"
minio:
image: minio/minio
container_name: go-sync-minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
ports:
- "9000:9000"
- "9001:9001"
volumes:
- miniodata:/data
nats:
image: nats:2
container_name: go-sync-nats
ports:
- "4222:4222"
go-sync:
build: .
container_name: go-sync-server
depends_on:
- postgres
- redis
- minio
- nats
ports:
- "50051:50051"
environment:
POSTGRES_URL: postgres://postgres:secret@postgres:5432/go-sync?sslmode=disable
REDIS_ADDR: redis:6379
MINIO_ENDPOINT: minio:9000
MINIO_USER: minio
MINIO_PASS: minio123
NATS_URL: nats://nats:4222
volumes:
pgdata:
miniodata: