52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
name: strike_arena
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: strike_arena_app
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
expose:
|
|
- "3000"
|
|
volumes:
|
|
- ./uploads:/app/uploads
|
|
- sqlite_data:/app/data
|
|
networks:
|
|
- backend
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/api/faq >/dev/null || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
nginx:
|
|
image: nginx:1.27-alpine
|
|
container_name: strike_arena_nginx
|
|
restart: unless-stopped
|
|
depends_on:
|
|
app:
|
|
condition: service_healthy
|
|
ports:
|
|
- "10.20.0.25:18083:80"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
networks:
|
|
- backend
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/health | grep -q ok"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
sqlite_data:
|
|
|
|
networks:
|
|
backend:
|
|
driver: bridge
|