-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.19 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
services:
postgres:
image: postgis/postgis:18-3.6
shm_size: 128mb
environment:
POSTGRES_DB: django
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD", "pg_isready", "--username", "postgres"]
start_period: 30s
start_interval: 2s
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql
rabbitmq:
image: rabbitmq:management-alpine
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
start_period: 30s
start_interval: 2s
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbitmq:/var/lib/rabbitmq
minio:
image: minio/minio:latest
# When run with a TTY, minio prints credentials on startup
tty: true
command: ["server", "/data", "--console-address", ":9001"]
environment:
MINIO_ROOT_USER: minioAccessKey
MINIO_ROOT_PASSWORD: minioSecretKey
healthcheck:
test: ["CMD", "mc", "ready", "local"]
# "mc ready" doesn't terminate on failure, so time it out
timeout: 1s
start_period: 30s
start_interval: 2s
ports:
- 9000:9000
- 9001:9001
volumes:
- minio:/data
volumes:
postgres:
minio:
rabbitmq: