-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
86 lines (81 loc) · 1.97 KB
/
docker-compose.yaml
File metadata and controls
86 lines (81 loc) · 1.97 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
services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: flora
POSTGRES_USER: flora
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-flora}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- flora
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U flora']
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
valkey:
image: valkey/valkey:latest
volumes:
- valkey_data:/data
networks:
- flora
healthcheck:
test: ['CMD', 'valkey-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
runtime:
image: ghcr.io/uwu/flora:0.1.0@sha256:52cd83ede99c825321ce8c2aa84a27023519a1d6951c388289bebd2fc2a52d8f
ports:
- '3000:3000'
volumes:
- ./config.docker.toml:/home/flora/config.toml:ro
depends_on:
postgres:
condition: service_healthy
valkey:
condition: service_healthy
build-service:
condition: service_healthy
networks:
- flora
restart: unless-stopped
build-service:
build:
context: .
dockerfile: apps/build-service/Dockerfile
image: flora-build-service:latest
ports:
- '3001:3001'
environment:
BUILD_SERVICE_SECRET: ${BUILD_SERVICE_SECRET?set BUILD_SERVICE_SECRET}
BUILD_SERVICE_HOST: 0.0.0.0
BUILD_SERVICE_PORT: 3001
BUILD_SERVICE_DISABLE_MINIFY: 'true'
BUILD_SERVICE_WORKSPACE_DIR: /app/build-workspace
volumes:
- build_service_workspace:/app/build-workspace
networks:
- flora
healthcheck:
test:
[
'CMD',
'node',
'-e',
"fetch('http://localhost:3001/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
]
interval: 30s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data:
valkey_data:
build_service_workspace:
networks:
flora:
name: flora