This repository was archived by the owner on Oct 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (66 loc) · 1.39 KB
/
docker-compose.yaml
File metadata and controls
67 lines (66 loc) · 1.39 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
services:
server:
container_name: server
build:
context: .
dockerfile: dockerfiles/nginx.dockerfile
ports:
- '8000:80'
volumes:
- ./src:/app
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- react
- node
- java
react:
container_name: react
build:
context: .
dockerfile: dockerfiles/node.dockerfile
volumes:
- ./src:/app:delegated
command: ["npm", "run", "dev", "--", "--host", "--port", "3000"]
ports:
- "3000:3000"
node:
container_name: node
build:
context: .
dockerfile: dockerfiles/node.dockerfile
command: ["node", "server.js", "--port", "4444"]
ports:
- "4444:4444"
java:
container_name: java
build:
context: .
dockerfile: dockerfiles/java.dockerfile
env_file:
- ./env/spring.env
ports:
- "5000:5000"
depends_on:
mysql:
condition: service_healthy
mysql:
container_name: mysql
image: mysql:8.0
env_file:
- ./env/mysql.env
ports:
- "3306:3306"
volumes:
- ./data/mysql:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
npm:
container_name: npm
image: node:22-slim
working_dir: /app
entrypoint: ["npm"]
volumes:
- ./src:/app