-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-debug.yml
53 lines (51 loc) · 1.24 KB
/
docker-compose-debug.yml
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
version: "3.14"
services:
web:
build: ./web
container_name: web-portfolio
restart: unless-stopped
ports:
- "5173:5173"
volumes:
- ./web:/home/app
command: yarn dev
env_file:
- ./web/.env
logging:
options:
max-size: "10m"
max-file: "3"
depends_on:
server:
condition: service_healthy
networks:
- portfolio
healthcheck:
test: [ "CMD", "lsof", "-t", "-i:5173" ]
timeout: 10s
retries: 5
server:
build: ./apps/server
container_name: server-portfolio
restart: unless-stopped
ports:
- "3002:3002"
- "9229:9229"
volumes:
- ./apps/server:/home/app
command: pnpm start:debug
env_file:
- ./apps/server/.env.local
logging:
options:
max-size: "10m"
max-file: "3"
networks:
- portfolio
healthcheck:
test: [ "CMD", "lsof", "-t", "-i:3002" ]
timeout: 10s
retries: 5
networks:
portfolio:
driver: "bridge"