-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.48 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
version: '2.3'
services:
discourse:
build:
context: .
dockerfile: image/discourse/Dockerfile
network: discourserubydataorg_default
image: rubydata/discourse
command: /sbin/boot
environment:
DISCOURSE_HOSTNAME: discourse.ruby-data.org
DISCOURSE_DB_SOCKET: ''
DISCOURSE_DB_HOST: postgres
DISCOURSE_DB_PORT: 5432
DISCOURSE_DB_USERNAME: discourse
DISCOURSE_DB_PASSWORD: ''
DISCOURSE_REDIS_HOST: redis
DISCOURSE_DEVELOPER_EMAILS: ${[email protected]}
DISCOURSE_SMTP_ADDRESS: ${DISCOURSE_SMTP_ADDRESS-email-smtp.us-west-2.amazonaws.com}
DISCOURSE_SMTP_PORT: ${DISCOURSE_SMTP_PORT-587}
DISCOURSE_SMTP_AUTHENTICATION: login
DISCOURSE_SMTP_ENABLE_START_TLS: "true"
DISCOURSE_SMTP_USER_NAME: ${DISCOURSE_SMTP_USER_NAME}
DISCOURSE_SMTP_PASSWORD: ${DISCOURSE_SMTP_PASSWORD}
DISCOURSE_SMTP_DOMAIN: ruby-data.org
ports:
- "8880:80"
- "2222:22"
depends_on:
- postgres
- redis
hostname: discourse.ruby-data.org
postgres:
# build: image/postgres
image: postgres:9.5
restart: always
environment:
# Superuser name
POSTGRES_USER: postgres
# Default created db name
POSTGRES_DB: discourse
# Rails DB user
RAILS_DB_USER: discourse
ports:
- "5432"
volumes:
- ./image/postgres/init_discourse.sh:/docker-entrypoint-initdb.d/init_postgresql.sh
redis:
image: redis