-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 1.13 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
# Docker Compose for LocalStore Menu - Production
# Usage: docker-compose up -d
#
# For development, use: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
# ==========================================================================
# Menu Website (Next.js) - Production Configuration
# ==========================================================================
menu:
build:
context: .
dockerfile: Dockerfile
target: runner
args:
- NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL:-https://api.lsp.menu}
container_name: localstore-menu
ports:
- "${MENU_PORT:-3000}:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL:-https://api.lsp.menu}
restart: always
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M