28 lines
575 B
YAML
28 lines
575 B
YAML
services:
|
|
next-go-blog:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
NEXT_PUBLIC_API_BASE: ${NEXT_PUBLIC_API_BASE}
|
|
container_name: next-go-blog
|
|
restart: always
|
|
#ports:
|
|
# - "${PORT:-3000}:3000"
|
|
#env_file:
|
|
# - .env
|
|
environment:
|
|
- NODE_ENV=production
|
|
healthcheck:
|
|
test: [ "CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000" ]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- dokploy-network
|
|
|
|
networks:
|
|
dokploy-network:
|
|
external: true
|