Files
stupid-apis/docker-compose.prod.yml
JohannesBOT bd46481e31
All checks were successful
Build and Deploy / build (push) Successful in 19s
Build and Deploy / deploy (push) Successful in 31s
docker compose prod
2026-03-18 20:34:22 +01:00

36 lines
779 B
YAML

x-stupid-api: &stupid-api
build:
context: /Sourcecode/stupid-apis
dockerfile: Dockerfile
environment:
- NODE_ENV=production
volumes:
- "/mnt/HDD/root/Sourcecode/stupid-apis:/app"
- /app/node_modules
restart: unless-stopped
services:
stupid-apis-1:
<<: *stupid-api
container_name: stupid-apis-1
stupid-apis-2:
<<: *stupid-api
container_name: stupid-apis-2
stupid-apis-3:
<<: *stupid-api
container_name: stupid-apis-3
nginx:
image: nginx:latest
container_name: stupid-nginx
volumes:
- "/mnt/HDD/root/Sourcecode/stupid-apis/nginx.conf:/etc/nginx/nginx.conf:ro"
ports:
- "42069:80"
restart: unless-stopped
depends_on:
- stupid-apis-1
- stupid-apis-2
- stupid-apis-3