-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (90 loc) · 2.57 KB
/
docker-compose.yml
File metadata and controls
95 lines (90 loc) · 2.57 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
93
94
95
services:
postgres:
build:
context: ./docker/postgres
dockerfile: Dockerfile
container_name: quackback-db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: quackback
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql
- ./docker/postgres/init-pgcron.sql:/docker-entrypoint-initdb.d/init-pgcron.sql
command: postgres -c shared_preload_libraries=pg_cron -c cron.database_name=quackback -c max_connections=200
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
container_name: quackback-minio
restart: unless-stopped
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- '9000:9000'
- '9001:9001'
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ['CMD', 'mc', 'ready', 'local']
interval: 5s
timeout: 5s
retries: 5
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly:v1.27.1
container_name: quackback-dragonfly
restart: unless-stopped
# BullMQ requires cluster_mode=emulated + lock_on_hashtags for Lua script compatibility.
# Queue names use hashtags (e.g. {event-hooks}) to pin keys to a single thread.
# See: https://www.dragonflydb.io/docs/integrations/bullmq
command: dragonfly --cluster_mode=emulated --lock_on_hashtags
ports:
- '6379:6379'
volumes:
- dragonfly_data:/data
ulimits:
memlock: -1
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 5s
retries: 5
mailpit:
image: axllent/mailpit:latest
container_name: quackback-mailpit
restart: unless-stopped
ports:
- '8025:8025' # Web UI
- '1025:1025' # SMTP
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:8025/api/v1/info']
interval: 5s
timeout: 5s
retries: 5
# Creates MinIO bucket and sets public download policy on startup
minio-init:
image: minio/mc:latest
container_name: quackback-minio-init
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 minioadmin minioadmin;
mc mb local/quackback --ignore-existing;
mc anonymous set download local/quackback;
exit 0;
"
restart: 'no'
volumes:
postgres_data:
minio_data:
dragonfly_data: