-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
152 lines (143 loc) · 4.42 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: '2'
services:
redirect:
image: morbz/docker-web-redirect
container_name: pref_redirect
restart: always
environment:
VIRTUAL_HOST: "${OLD}"
REDIRECT_TARGET: "${PREF_URL}"
pref_blog:
image: docker.io/derchef/ghost:latest
container_name: pref_blog
restart: always
ports:
- "2368:2368"
depends_on:
- pref_db
environment:
url: "${PREF_URL}"
database__client: mysql
database__connection__host: pref_db
database__connection__user: root
database__connection__password: "${DB_PASSWORD}"
database__connection__database: ghost
volumes:
- ./content:/var/lib/ghost/content
- ./home:/home
pref_ssh:
image: docker.io/derchef/ghost:latest
container_name: pref_ssh
restart: always
depends_on:
- pref_blog
ports:
- "2369:22"
command: /usr/sbin/sshd -D
volumes_from:
- pref_blog
pref_db:
image: docker.io/mysql:8.0
container_name: "pref_db"
restart: always
volumes:
- pref_db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
postgresql:
image: docker.io/bitnami/postgresql:13
container_name: "pref_discourse_db"
ports:
- "5432:5432"
volumes:
- pref_discourse_db_data:/bitnami/postgresql
environment:
POSTGRESQL_USERNAME: postgres
POSTGRESQL_DATABASE: discourse
POSTGRESQL_PASSWORD: "${DB_PASSWORD}"
redis:
image: docker.io/bitnami/redis:6.0
container_name: "pref_discourse_redis"
volumes:
- pref_discourse_redis_data:/bitnami/redis
environment:
REDIS_PASSWORD: "${DB_PASSWORD}"
discourse:
image: docker.io/bitnami/discourse:2
container_name: "pref_discourse"
restart: always
ports:
- "${DISCOURSE_PORT}:${DISCOURSE_PORT}"
volumes:
- pref_discourse_data:/bitnami/discourse
depends_on:
- postgresql
- redis
environment:
# Discourse
DISCOURSE_USERNAME: "${DISCOURSE_USER}"
DISCOURSE_PASSWORD: "${DISCOURSE_PASSWORD}"
DISCOURSE_EMAIL: "${DISCOURSE_EMAIL}"
DISCOURSE_HOST: "${DISCOURSE_URL}"
DISCOURSE_PORT_NUMBER: "${DISCOURSE_PORT}"
DISCOURSE_PRECOMPILE_ASSETS: no
# DB
DISCOURSE_DATABASE_HOST: postgresql
DISCOURSE_DATABASE_PORT_NUMBER: 5432
DISCOURSE_DATABASE_NAME: discourse
DISCOURSE_DATABASE_USER: postgres
DISCOURSE_DATABASE_PASSWORD: "${DB_PASSWORD}"
# Redis
DISCOURSE_REDIS_HOST: redis
DISCOURSE_REDIS_PORT_NUMBER: 6379
DISCOURSE_REDIS_PASSWORD: "${DB_PASSWORD}"
# SMTP
DISCOURSE_SMTP_HOST: "${DISCOURSE_SMTP_HOST}"
DISCOURSE_SMTP_PORT: "${DISCOURSE_SMTP_PORT}"
DISCOURSE_SMTP_USER: "${DISCOURSE_SMTP_USER}"
DISCOURSE_SMTP_PASSWORD: "${DISCOURSE_SMTP_PASSWORD}"
DISCOURSE_SMTP_PROTOCOL: "${DISCOURSE_SMTP_PROTOCOL}"
# Postgresl-Client
POSTGRESQL_CLIENT_POSTGRES_USER: postgres
POSTGRESQL_CLIENT_POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRESQL_CLIENT_CREATE_DATABASE_NAME: bitnami_discourse
POSTGRESQL_CLIENT_CREATE_DATABASE_EXTENSIONS: hstore,pg_trgm
sidekiq:
image: docker.io/bitnami/discourse:2
container_name: "pref_sidekiq"
restart: always
depends_on:
- discourse
volumes:
- pref_sidekiq_data:/bitnami/discourse
command: /opt/bitnami/scripts/discourse-sidekiq/run.sh
environment:
# Discourse
DISCOURSE_USERNAME: "${DISCOURSE_USER}"
DISCOURSE_PASSWORD: "${DISCOURSE_PASSWORD}"
DISCOURSE_EMAIL: "${DISCOURSE_EMAIL}"
DISCOURSE_HOST: "${DISCOURSE_URL}"
DISCOURSE_PORT_NUMBER: "${DISCOURSE_PORT}"
DISCOURSE_PRECOMPILE_ASSETS: no
# DB
DISCOURSE_DATABASE_HOST: postgresql
DISCOURSE_DATABASE_PORT_NUMBER: 5432
DISCOURSE_DATABASE_NAME: discourse
DISCOURSE_DATABASE_USER: postgres
DISCOURSE_DATABASE_PASSWORD: "${DB_PASSWORD}"
# Redis
DISCOURSE_REDIS_HOST: redis
DISCOURSE_REDIS_PORT_NUMBER: 6379
DISCOURSE_REDIS_PASSWORD: "${DB_PASSWORD}"
# SMTP
DISCOURSE_SMTP_HOST: "${DISCOURSE_SMTP_HOST}"
DISCOURSE_SMTP_PORT: "${DISCOURSE_SMTP_PORT}"
DISCOURSE_SMTP_USER: "${DISCOURSE_SMTP_USER}"
DISCOURSE_SMTP_PASSWORD: "${DISCOURSE_SMTP_PASSWORD}"
DISCOURSE_SMTP_PROTOCOL: "${DISCOURSE_SMTP_PROTOCOL}"
volumes:
pref_discourse_db_data:
pref_discourse_redis_data:
pref_discourse_data:
pref_sidekiq_data:
pref_db_data: