2025-05-11 17:19:26 +00:00
|
|
|
services:
|
|
|
|
|
boxes:
|
|
|
|
|
image: fedora:latest
|
2025-11-20 22:24:24 +00:00
|
|
|
container_name: ${EXTERNAL_NAME:-boxes}
|
2025-05-11 17:19:26 +00:00
|
|
|
ports:
|
2025-11-20 15:43:04 +00:00
|
|
|
- "${EXTERNAL_PORT:-8000}:8000"
|
2025-05-11 17:19:26 +00:00
|
|
|
environment:
|
2025-11-20 22:28:54 +00:00
|
|
|
BUILD_BRANCH: master
|
|
|
|
|
BUILD_REPO: https://github.com/florianfesti/boxes.git
|
2025-05-11 17:19:26 +00:00
|
|
|
volumes:
|
|
|
|
|
- ./boxes:/boxes
|
|
|
|
|
command: /boxes/scripts/boxesserver
|
|
|
|
|
deploy:
|
|
|
|
|
mode: replicated
|
|
|
|
|
replicas: 1
|
|
|
|
|
update_config:
|
|
|
|
|
parallelism: 1
|
|
|
|
|
delay: 10s
|
|
|
|
|
restart_policy:
|
2025-11-20 15:48:51 +00:00
|
|
|
condition: always
|
2025-05-11 17:19:26 +00:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
args:
|
2025-11-20 22:29:29 +00:00
|
|
|
- BUILD_BRANCH= master
|
|
|
|
|
- BUILD_REPO= https://github.com/florianfesti/boxes.git
|
2025-05-11 17:19:26 +00:00
|
|
|
# Install requirements
|
|
|
|
|
init: true
|
|
|
|
|
entrypoint:
|
|
|
|
|
- /bin/sh
|
|
|
|
|
- -c
|
|
|
|
|
- |
|
|
|
|
|
dnf install -y git-core python3-markdown python3-setuptools python3-affine python3-shapely python3-pillow python3-qrcode pstoedit && dnf clean all
|
2025-11-20 22:27:15 +00:00
|
|
|
git clone --depth 1 -b master https://github.com/florianfesti/boxes.git /boxes
|
2025-05-11 17:19:26 +00:00
|
|
|
chmod +x /boxes/scripts/boxesserver
|
|
|
|
|
/boxes/scripts/boxesserver
|