Add env variable for which branch to use. Move CPU and RAM requirements to env so that only 1 docker-compose.yml example is needed.

This commit is contained in:
2025-10-14 14:21:59 -07:00
parent 95060838e2
commit 418983c490
4 changed files with 22 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
# 2022-10-29
# Hyperling.com configuration.
services:
app:
container_name: www-app
build:
context: ./
network: host
restart: always
ports:
- 8317:8080
environment:
- BRANCH=$BRANCH
- CPU=$CPU
- MEM=$MEM
volumes:
- ./files:/var/www/api/files
deploy:
mode: global
resources:
limits:
cpus: $CPU
memory: $RAM