first commit
This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user