This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
60 lines (60 loc) · 1.6 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
version: '3'
services:
db:
image: postgres:12.5
environment:
POSTGRES_USER: secretariat
POSTGRES_PASSWORD: secretariat
ports:
- '5432:5432'
maildev:
image: maildev/maildev:1.1.0
environment:
MAILDEV_INCOMING_USER: mailuser
MAILDEV_INCOMING_PASS: mailpassword
ports:
- '1080:80'
- '1025:25'
redis: # sessions
image: redis:alpine
command: redis-server --requirepass localpwd
hostname: redis
restart: always
ports:
- 6379:6379
web:
build: .
command: bash -c "echo 'first npm install can be a bit long'; npm run migrate; npm run dev"
depends_on:
- db
- maildev
- redis
env_file:
- .env
environment:
CHAT_WEBHOOK_URL_GENERAL: 'https://example.com'
CHAT_WEBHOOK_URL_SECRETARIAT: 'https://example.com'
CHAT_WEBHOOK_URL_DINUM: 'https://example.com'
DATABASE_URL: postgres://secretariat:secretariat@db:5432/secretariat
MAIL_PASS: mailpassword
MAIL_USER: mailuser
MAIL_HOST: maildev
MAIL_PORT: 25
MAIL_IGNORE_TLS: 'true'
MAIL_SENDER: 'addresse@localhost'
SECURE: 'false'
HOSTNAME: localhost
SESSION_SECRET: 'SecretThatShouldChangedInProduction'
FEATURE_SHOULD_SEND_MESSAGE_TO_AUTHOR: 'true'
REDIS_PORT: 6379
REDIS_HOST: localhost
REDIS_PASSWORD: localpwd
REDIS_EVENT_BUS_STREAM_NAME: eventbus-local
REDIS_URL: redis://:localpwd@redis:6379
HASH_SALT: 'FakeHashSaltToChangeInProduction'
ports:
- '8100:8100'
- '9229:9229'
volumes:
- .:/app
restart: on-failure