Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
72 lines (67 loc) · 1.9 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
72 lines (67 loc) · 1.9 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
x-logging: &logging
driver: json-file
options:
max-size: 10m
max-file: "5"
services:
postgres:
image: postgres:16.15-alpine
container_name: cluster-postgres-dev
logging: *logging
ports:
- "${POSTGRES_PORT:-5432}:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB:-cluster}
POSTGRES_USER: ${POSTGRES_USER:-cluster}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-cluster}
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-cluster} -d ${POSTGRES_DB:-cluster}"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7.4-alpine
container_name: cluster-redis-dev
logging: *logging
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
storage:
image: chrislusf/seaweedfs:4.48
container_name: cluster-storage-dev
logging: *logging
entrypoint: ["/bin/sh", "/start.sh"]
ports:
- "${STORAGE_PORT:-9000}:8333"
- "${STORAGE_MASTER_PORT:-9333}:9333"
environment:
STORAGE_ACCESS_KEY: ${STORAGE_ACCESS_KEY:-cluster-storage}
STORAGE_SECRET_KEY: ${STORAGE_SECRET_KEY:-cluster-storage-secret}
volumes:
- storage-data:/data
- ./docker/storage/start.sh:/start.sh:ro
healthcheck:
test: ["CMD-SHELL", "wget -S -O /dev/null http://127.0.0.1:8333/ 2>&1 | grep -Eq 'HTTP/[0-9.]+ (200|403|404)'"]
interval: 5s
timeout: 5s
retries: 5
# Catches every email sent in development and tests. Inbox UI: http://localhost:8025
mailpit:
image: axllent/mailpit:v1.31.4
container_name: cluster-mailpit-dev
logging: *logging
ports:
- "${SMTP_PORT:-1025}:1025"
- "${MAILPIT_UI_PORT:-8025}:8025"
volumes:
postgres-data:
redis-data:
storage-data: