-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 899 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 899 Bytes
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
version: '3.7'
services:
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: 'modmail'
POSTGRES_PASSWORD: 'admin'
POSTGRES_DB: 'modmail'
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
ports:
- 127.0.0.1:${DATABASE_PORT}:5432
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U modmail']
interval: 10s
timeout: 5s
bot:
image: chatsift/modmail
build:
context: ./
dockerfile: ./Dockerfile
env_file:
- ./.env
environment:
DATABASE_URL: 'postgresql://modmail:admin@postgres:5432/modmail'
restart: unless-stopped
volumes:
- ./logs:/usr/modmail/logs
depends_on:
- postgres
command: ['node', '--enable-source-maps', '--no-warnings', './packages/bot/dist/index.js']
volumes:
postgres-data:
name: 'modmail-postgres-data'