-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcompose.yaml
More file actions
78 lines (74 loc) · 1.93 KB
/
compose.yaml
File metadata and controls
78 lines (74 loc) · 1.93 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
services:
web:
build:
context: .
dockerfile: ./apps/web/Dockerfile
args:
# Backend API server - used at build time to create the bundle
PUBLIC_SERVER_URL: http://localhost:3035
PUBLIC_SERVER_API_PATH: /api
ports:
- 8085:80
healthcheck:
interval: 30s
timeout: 10s
retries: 3
test:
["CMD-SHELL", "curl --fail --silent http://localhost:80/healthcheck"]
depends_on:
- server
server:
build:
context: .
dockerfile: ./apps/server/Dockerfile
ports:
- 3035:3000
environment:
- SERVER_AUTH_SECRET=${SERVER_AUTH_SECRET:-please_change_this_in_production}
- SERVER_POSTGRES_URL=postgres://postgres:postgres@db:5432/postgres
- SERVER_HOST=0.0.0.0
- SERVER_PORT=3000
- PUBLIC_WEB_URL=http://localhost:8085
- PUBLIC_SERVER_URL=http://localhost:3035
healthcheck:
interval: 30s
timeout: 10s
retries: 3
test:
[
"CMD-SHELL",
"wget --quiet --spider http://$$SERVER_HOST:$$SERVER_PORT/healthcheck",
]
depends_on:
- db
db:
image: docker.io/postgres:18
ports:
- 5432:5432
command: ["postgres", "-c", "log_statement=all"]
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
interval: 30s
timeout: 10s
retries: 3
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
drizzle:
restart: "no"
command: /bin/sh
build:
context: .
dockerfile: ./packages/db/Dockerfile
environment:
- DB_POSTGRES_URL=postgres://postgres:postgres@db:5432/postgres
- TURBO_UI=true
profiles:
# Using profiles to avoid starting this container by default.
# We only use this to run `pnpm db:push`
- drizzle
volumes:
postgres_data: