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:
24
Config/Hyperling.com/docker-compose.main.yml
Normal file
24
Config/Hyperling.com/docker-compose.main.yml
Normal 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
|
Reference in New Issue
Block a user