appstore-1panel/apps/metatube-server/1.2.8/docker-compose.yml
Meng Sen 94d352b35a 发布应用 MetaTube
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
2024-11-28 11:30:40 +08:00

28 lines
807 B
YAML

networks:
1panel-network:
external: true
services:
metatube-server:
image: metatube/metatube-server:1.2.8
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8080
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${METATUBE_ROOT_PATH}/data:/var/run
environment:
- HTTPS_PROXY=${HTTP_PROXY}
- DB_MAX_IDLE_CONNS=0
- DB_MAX_OPEN_CONNS=0
- DB_PREPARED_STMT=false
- DB_AUTO_MIGRATE=true
command: -dsn "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}" -port 8080 -db-auto-migrate -db-prepared-stmt