28 lines
628 B
YAML
28 lines
628 B
YAML
version: '2.1'
|
|
services:
|
|
www:
|
|
container_name: material-api
|
|
image: python:3.7.16
|
|
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
|
|
- ./files:/usr/src/app/files
|
|
working_dir: /usr/src/app/
|
|
ports:
|
|
- 7072:7072
|
|
networks:
|
|
- server
|
|
|
|
networks:
|
|
server:
|
|
external: true |