This commit is contained in:
han0
2024-05-29 10:21:31 +08:00
commit 54ac29d27b
119 changed files with 6817 additions and 0 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
version: '2.1'
services:
www:
image: python:3.7.16-material-api
build: ./docker
restart: always
environment:
- SERVICE_NAME=material-api
- HOST_IP=${HOST_IP:-127.0.0.1}
- TZ="Asia/Shanghai"
command:
"/root/.local/bin/supervisord -c /usr/src/app/${SUPERVISOR_CONFIG:-supervisor.conf}"
extra_hosts:
- "test.225.server:${_IP-168.168.7.225}"
volumes:
- ./web:/usr/src/app
- ./home:/root/.local
- ./logs:/logs
- /opt/files/material_api:/usr/src/app/files
working_dir: /usr/src/app/
ports:
- 7072:7072