-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 1.29 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
version: '3'
services:
app:
image: kaangiray26/endless:1.3
restart: on-failure
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
environment:
port: 3000 # Set Port
version: "1.3" # Set Version
verbose: false # Verbose Logging
NODE_ENV: production # Set Node Environment
POSTGRES_HOST: postgres # Postgres Host/IP
POSTGRES_USER: endless # Set Postgres Username
POSTGRES_PASSWORD: endless # Set Postgres Password
POSTGRES_PORT: 5432 # Postgres Database Port
POSTGRES_DB: endless # Set Postgres Database Name
postgres:
image: kaangiray26/postgres:2.0
restart: on-failure
environment:
POSTGRES_USER: endless # Set Postgres Username
POSTGRES_PASSWORD: endless # Set Postgres Password
POSTGRES_DB: endless # Set Postgres Database Name
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U endless" ]
interval: 1s
timeout: 5s
retries: 5
volumes:
db-data: