init: Vite+React+Tailwind v2 site with HTML content from WP, RSS feed, external feed aggregator, prerender
This commit is contained in:
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
pushkinohistory-ru-v2:
|
||||
build:
|
||||
context: .
|
||||
image: pushkinohistory-ru-v2:latest
|
||||
container_name: pushkinohistory-ru-v2
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:4146:3000"
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3000
|
||||
volumes:
|
||||
- /opt/www/pushkinohistory.ru/uploads:/app/public/uploads:ro
|
||||
- /opt/docker/sites/pushkinohistory-ru-v2/data:/app/data:ro
|
||||
cap_drop: [ALL]
|
||||
cap_add: [NET_BIND_SERVICE, CHOWN, SETUID, SETGID]
|
||||
security_opt: [no-new-privileges:true]
|
||||
tmpfs:
|
||||
- /tmp:noexec,nosuid,size=16m
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:3000/api/health"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
Reference in New Issue
Block a user