Files
material-api/docker-compose.yml

28 lines
628 B
YAML
Raw Permalink Normal View History

2024-05-29 10:21:31 +08:00
version: '2.1'
services:
www:
2025-10-13 16:04:53 +08:00
container_name: material-api
image: python:3.7.16
2024-05-29 10:21:31 +08:00
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
2025-10-13 15:43:49 +08:00
- ./files:/usr/src/app/files
2024-05-29 10:21:31 +08:00
working_dir: /usr/src/app/
ports:
- 7072:7072
2025-10-13 16:04:53 +08:00
networks:
- server
networks:
server:
external: true