forked from Shelterflex/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (94 loc) · 2.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
100 lines (94 loc) · 2.21 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: shelterflex_dev
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d shelterflex_dev"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
env_file:
- .env.docker
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/shelterflex_dev
S3_ENDPOINT: http://minio:9000
S3_BUCKET: tenant-documents
S3_ACCESS_KEY_ID: minioadmin
S3_SECRET_ACCESS_KEY: minioadmin
S3_FORCE_PATH_STYLE: "true"
volumes:
- ./backend:/app
- /app/node_modules
ports:
- "4000:4000"
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
minio-init:
image: minio/mc:latest
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 minioadmin minioadmin;
mc mb --ignore-existing local/tenant-documents;
exit 0;
"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
env_file:
- .env.docker
environment:
HOSTNAME: "0.0.0.0"
WATCHPACK_POLLING: "true"
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
ports:
- "3000:3000"
depends_on:
- backend
stellar-quickstart:
profiles: ["contracts"]
image: stellar/quickstart:latest
command: --standalone --enable-soroban-rpc
ports:
- "8000:8000"
volumes:
postgres_data:
minio_data: