feat: 增加 python 运行环境 (#2337)
This commit is contained in:
18
apps/python/3.12.7/docker-compose.yml
Normal file
18
apps/python/3.12.7/docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
node:
|
||||
image: python:${PYTHON_VERSION}
|
||||
container_name: ${CONTAINER_NAME}
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ${CODE_DIR}:/app
|
||||
- ./run.sh:/run.sh
|
||||
- ./.env:/.env
|
||||
command: bash /run.sh
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${APP_PORT}
|
||||
restart: on-failure:5
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user