generated from ChatSift/bot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 995 Bytes
/
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
version: '3.7'
services:
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: 'backend'
POSTGRES_PASSWORD: 'admin'
POSTGRES_DB: 'backend'
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 backend']
interval: 10s
timeout: 5s
api:
image: chatsift/website
build:
context: ./
dockerfile: ./Dockerfile
env_file:
- ./.env
environment:
DATABASE_URL: 'postgresql://backend:admin@postgres:5432/backend'
restart: unless-stopped
volumes:
- ./logs:/usr/website/logs
depends_on:
- postgres
command:
[
'node',
'--es-module-specifier-resolution=node',
'--enable-source-maps',
'--no-warnings',
'./packages/api/dist/index.js',
]
volumes:
postgres-data:
name: 'website-postgres-data'