Files
mengyastore/mengyastore-backend-go/docker-compose.yml

18 lines
648 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
backend:
build:
context: .
container_name: mengyastore-backend
ports:
- "28081:8080"
environment:
GIN_MODE: release
TZ: Asia/Shanghai
# 生产环境 MySQL DSN使用内网地址。
# 本地开发请修改为测试库地址,或通过 .env 文件覆盖。
#mengyastore-test:mengyastore-test@tcp(10.1.1.100:3306)/mengyastore-test?charset=utf8mb4&parseTime=True&loc=Local
DATABASE_DSN: "mengyastore:mengyastore@tcp(192.168.1.100:3306)/mengyastore?charset=utf8mb4&parseTime=True&loc=Local"
volumes:
- ./config.json:/app/config.json:ro
restart: unless-stopped