mirror of
https://github.com/ecmwf/skinnywms.git
synced 2026-01-18 16:13:03 +00:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
skinnywms:
|
|
platform: linux/amd64
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- PYTHON_IMAGE=python:3.11-slim-bookworm
|
|
- http_proxy
|
|
- https_proxy
|
|
- no_proxy
|
|
volumes:
|
|
- '.:/app/skinnywms:ro'
|
|
- './skinnywms/testdata:/data:ro'
|
|
# - './magics-patch/Magics.py:/usr/local/lib/python3.8/site-packages/Magics/Magics.py:ro'
|
|
# override the default command to run flask app without uwgsi
|
|
# to make use of automatic reload on code changes for development purposes
|
|
command:
|
|
- bash
|
|
- -c
|
|
- 'python /app/skinnywms/demo.py --host=${SKINNYWMS_HOST} --port=${SKINNYWMS_PORT} --path=${SKINNYWMS_DATA_PATH}'
|
|
# # - 'sleep infinity'
|
|
restart: always
|
|
ports:
|
|
- 5000:5000
|
|
env_file:
|
|
- ./.env
|
|
# environment:
|
|
# - SKINNYWMS_DATA_PATH=${SKINNYWMS_DATA_PATH}
|
|
# - SKINNYWMS_HOST=${SKINNYWMS_HOST}
|
|
# - SKINNYWMS_PORT=${SKINNYWMS_PORT}
|
|
# - FLASK_ENV=${FLASK_ENV} |