Files
compose-template/Docker/message-pusher/docker-compose.yml

26 lines
714 B
YAML

version: '3.3'
services:
message-pusher:
ports:
- 3017:3000
environment:
TZ: Asia/Shanghai # 设置时区
SESSION_SECRET: random_string # 设置Session密钥
# REDIS_CONN_STRING: redis://default:redispw@localhost:49153 # 设置Redis连接字符串
# SQL_DSN: root:123456@tcp(localhost:3306)/message_pusher # 设置MySQL连接字符串
volumes:
- './data:/data'
container_name: message-pusher
restart: unless-stopped
image: justsong/message-pusher
command: --port=3000 --log-dir=/data/logs
networks:
nginx:
aliases:
- message-pusher
networks:
nginx:
external: true
# https://github.com/songquanpeng/message-pusher