Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
81 lines (75 loc) · 1.94 KB
/
Copy pathcompose.yaml
File metadata and controls
81 lines (75 loc) · 1.94 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
name: strata
services:
app:
build:
context: ./app
target: development
command: [sh, -c, 'npm run prisma:migrate:deploy && exec npm run dev']
environment:
DATABASE_URL: postgresql://strata:strata@postgres:5432/strata
REDIS_URL: redis://redis:6379
AUTH_ACCESS_TOKEN_SECRET: ${AUTH_ACCESS_TOKEN_SECRET:-local-access-token-secret-change-me-please}
AUTH_TRUSTED_ORIGINS: http://localhost:4104,http://localhost:4102
DATA_ENCRYPTION_KEY: ${DATA_ENCRYPTION_KEY:-bG9jYWwtZGV2ZWxvcG1lbnQta2V5LWNoYW5nZS1tZSE=}
APP_URL: http://localhost:4104
DEFAULT_FROM_EMAIL: Strata <strata@localhost>
EMAIL_HOST: mailpit
EMAIL_PORT: '1025'
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
mailpit:
condition: service_started
ports:
- '4102:3000'
volumes:
- files-data:/data/files
- ./app:/app
- /app/node_modules
frontend:
build:
context: ./app
target: development
command: npm run dev --workspace frontend -- --host 0.0.0.0
environment:
VITE_API_ORIGIN: http://app:3000
ports:
- '4104:5173'
volumes:
- ./app:/app
- /app/node_modules
depends_on:
- app
mailpit:
image: axllent/mailpit:v1.31.2
ports:
- '4125:8025'
postgres:
image: postgres:18-alpine
environment:
POSTGRES_DB: strata
POSTGRES_USER: strata
POSTGRES_PASSWORD: strata
healthcheck:
test: [CMD-SHELL, pg_isready -U strata -d strata]
interval: 5s
timeout: 5s
retries: 10
volumes:
- postgres-data:/var/lib/postgresql
redis:
image: redis:8.10-alpine
command: [redis-server, --save, '60', '1']
healthcheck:
test: [CMD, redis-cli, ping]
interval: 5s
timeout: 5s
retries: 10
volumes:
- redis-data:/data
volumes:
files-data:
postgres-data:
redis-data: