-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 896 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 896 Bytes
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
services:
frontend:
build:
context: .
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
container_name: frontend
restart: always
ports:
- '127.0.0.1:14702:14702'
networks:
- teacoder_network
deploy:
resources:
limits:
cpus: '0.60'
memory: 1200M
healthcheck:
test:
[
'CMD-SHELL',
'node -e ''require("http").get("http://localhost:14702/", (r) => process.exit(r.statusCode === 200 ? 0 : 1))'''
]
interval: 30s
timeout: 10s
retries: 3
networks:
teacoder_network:
external: true