-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.77 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.77 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
# GoNext local development stack.
#
# Brings up the data services the app talks to: Postgres, Redis, and a
# MinIO instance for S3-compatible media storage.
#
# This file is intentionally minimal in this initial bootstrap. Subsequent
# issues add the app services themselves (api, worker, web, admin), CI
# health checks, and resource limits.
#
# Quick start:
# make up # start
# make psql # connect to Postgres
# make redis-cli # connect to Redis
# make down # stop
name: gonext-dev
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: gonext
POSTGRES_PASSWORD: gonext_dev_only
POSTGRES_DB: gonext_dev
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gonext -d gonext_dev"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
restart: unless-stopped
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
minio:
image: minio/minio:latest
restart: unless-stopped
command: ["server", "/data", "--console-address", ":9001"]
environment:
MINIO_ROOT_USER: gonext
MINIO_ROOT_PASSWORD: gonext_dev_only_change_me
ports:
- "9000:9000" # S3 API
- "9001:9001" # web console
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 3s
retries: 10
volumes:
postgres-data:
redis-data:
minio-data: