-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.51 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
services:
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: githubstore
POSTGRES_USER: githubstore
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-githubstore}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U githubstore"]
interval: 5s
timeout: 3s
retries: 5
meilisearch:
image: getmeili/meilisearch:v1.14
restart: unless-stopped
environment:
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-devkey}
MEILI_ENV: ${MEILI_ENV:-development}
volumes:
- msdata:/meili_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
interval: 5s
timeout: 3s
retries: 5
app:
build: .
restart: unless-stopped
ports:
- "8080:8080"
environment:
DATABASE_URL: jdbc:postgresql://postgres:5432/githubstore
DATABASE_USER: githubstore
DATABASE_PASSWORD: ${POSTGRES_PASSWORD:-githubstore}
MEILI_URL: http://meilisearch:7700
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-devkey}
depends_on:
postgres:
condition: service_healthy
meilisearch:
condition: service_healthy
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- app
volumes:
pgdata:
msdata:
caddy_data:
caddy_config: