23 lines
576 B
YAML
23 lines
576 B
YAML
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
|