2023-08-10 12:27:18 +08:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
pzx-web-api:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile
|
|
|
|
container_name: pzx-web-api
|
|
|
|
hostname: pzx-web-api
|
|
|
|
ports:
|
|
|
|
- "5010:5000"
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
environment:
|
|
|
|
TZ: "Asia/Shanghai"
|
|
|
|
LOG_LEVEL: "DEBUG"
|
2023-08-10 12:43:19 +08:00
|
|
|
HOSTNAME: $(cat /etc/hostname)
|
2023-08-10 12:27:18 +08:00
|
|
|
env_file:
|
|
|
|
- .apiflaskenv
|
|
|
|
- .apiflask.env
|
|
|
|
working_dir: /app
|
|
|
|
tty: true
|
|
|
|
restart: always
|
|
|
|
command: ["sh", "docker-deploy.sh"]
|