你好,很高兴认识大家。我在1panel docker安装discourse STMP报错,希望获得大家的帮助。
networks:
1panel-network:
external: true
services:
discourse:
container_name: ${CONTAINER_NAME}
environment:
DISCOURSE_DATABASE_HOST: ${PANEL_DB_HOST}
DISCOURSE_DATABASE_NAME: ${PANEL_DB_NAME}
DISCOURSE_DATABASE_PASSWORD: ${PANEL_DB_USER_PASSWORD}
DISCOURSE_DATABASE_PORT_NUMBER: ${PANEL_DB_PORT}
DISCOURSE_DATABASE_USER: ${PANEL_DB_USER}
DISCOURSE_EMAIL: ${DISCOURSE_EMAIL}
DISCOURSE_HOST: ${DISCOURSE_HOST}
DISCOURSE_PASSWORD: ${DISCOURSE_PASSWORD}
DISCOURSE_REDIS_HOST: ${PANEL_REDIS_HOST}
DISCOURSE_REDIS_PASSWORD: ${PANEL_REDIS_ROOT_PASSWORD}
DISCOURSE_SMTP_HOST: smtp.qq.com
DISCOURSE_SMTP_PASSWORD: ******
DISCOURSE_SMTP_PORT_NUMBER: 587
DISCOURSE_SMTP_PROTOCOL: TLS
DISCOURSE_SMTP_USER: 932476333@qq.com
DISCOURSE_USERNAME: ${DISCOURSE_USERNAME}
POSTGRESQL_CLIENT_CREATE_DATABASE_EXTENSIONS: hstore,pg_trgm
POSTGRESQL_CLIENT_CREATE_DATABASE_NAME: ${PANEL_DB_NAME}
POSTGRESQL_CLIENT_POSTGRES_PASSWORD: ${PANEL_DB_USER_PASSWORD}
POSTGRESQL_CLIENT_POSTGRES_USER: ${PANEL_DB_USER}
image: bitnami/discourse:3.3.2
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3000
restart: always
volumes:
- ./data/discourse:/bitnami/discourse
sidekiq:
command: /opt/bitnami/scripts/discourse-sidekiq/run.sh
container_name: ${CONTAINER_NAME}-sidekiq
depends_on:
- discourse
deploy:
resources:
limits:
cpus: ${CPUS}
memory: ${MEMORY_LIMIT}
environment:
DISCOURSE_DATABASE_HOST: ${PANEL_DB_HOST}
DISCOURSE_DATABASE_NAME: ${PANEL_DB_NAME}
DISCOURSE_DATABASE_PASSWORD: ${PANEL_DB_USER_PASSWORD}
DISCOURSE_DATABASE_PORT_NUMBER: ${PANEL_DB_PORT}
DISCOURSE_DATABASE_USER: ${PANEL_DB_USER}
DISCOURSE_HOST: ${DISCOURSE_HOST}
DISCOURSE_REDIS_HOST: ${PANEL_REDIS_HOST}
DISCOURSE_REDIS_PASSWORD: ${PANEL_REDIS_ROOT_PASSWORD}
image: bitnami/discourse:3.3.2
labels:
createdBy: Apps
networks:
- 1panel-network
restart: always
volumes:
- ./data/sidekiq:/bitnami/discourse