-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (91 loc) · 2.23 KB
/
docker-compose.yml
File metadata and controls
94 lines (91 loc) · 2.23 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
services:
next:
container_name: next
restart: always
depends_on:
server:
condition: service_healthy
build:
context: ./apps/next
dockerfile: Dockerfile
target: dev
args:
BUN_VERSION: ${BUN_VERSION:-1.3.3}
NODE_VERSION: ${NODE_VERSION:-22.20.0}
APP_PORT: ${NEXT_PORT:-3000}
# Enable BuildKit for optimizations
x-bake:
cache-from:
- type=local,src=/tmp/.buildx-cache
cache-to:
- type=local,dest=/tmp/.buildx-cache
env_file:
- .env
ports:
- 8080:${NEXT_PORT:-3000}
volumes:
- ./apps/next:/app
- next_node_modules:/app/node_modules
healthcheck:
test:
["CMD", "curl", "-f", "http://localhost:${NEXT_PORT:-3000}/api/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 40s
# vue:
# container_name: vue
# restart: always
# depends_on:
# server:
# condition: service_healthy
# build:
# context: ./apps/vue
# dockerfile: Dockerfile
# target: dev
# args:
# BUN_VERSION: ${BUN_VERSION:-1.3.3}
# NODE_VERSION: ${NODE_VERSION:-22.20.0}
# APP_PORT: ${CLIENT_PORT:-5173}
# env_file:
# - .env
# ports:
# - 8081:5173
# volumes:
# - ./apps/vue:/app
# - vue_node_modules:/app/node_modules
server:
container_name: server-fastapi
env_file:
- .env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 5s
timeout: 3s
retries: 5
start_period: 30s
build:
context: .
dockerfile: ./apps/server/Dockerfile
target: dev
args:
PYTHON_VERSION: ${PYTHON_VERSION:-3.12}
APP_PORT: ${SERVER_PORT:-8000}
# Enable BuildKit for optimizations
x-bake:
cache-from:
- type=local,src=/tmp/.buildx-cache
cache-to:
- type=local,dest=/tmp/.buildx-cache
ports:
- "8000:8000"
volumes:
- ./apps/server:/app/server
- ./pyproject.toml:/app/pyproject.toml:ro
- ./uv.lock:/app/uv.lock:ro
- server_venv:/app/.venv
restart: always
volumes:
next_node_modules:
vue_node_modules:
server_venv: