-
Notifications
You must be signed in to change notification settings - Fork 2
/
database.yml
47 lines (46 loc) · 1.05 KB
/
database.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
version: "3.3"
services:
# app:
# build:
# context: ./src
# dockerfile: Dockerfile
# container_name: smart-server
# ports:
# - "2001:2001"
# links:
# - db
# depends_on:
# db:
# condition: service_healthy
# expose:
# - "2001"
# environment:
# - DB_HOST=db
# - DB_PORT=5432
# - DB_USERNAME=postgres
# - DB_PASSWORD=postgres
# - DB_NAME=postgres
# - SECRET=gitscapstoneproject
# - PORT=2001
# - RESET_TABLES=true
# - SEED_TABLES=true
# - PASSWORD_EMAIL=jfhrxbvhepngnbsv
# restart: "unless-stopped"
db:
image: postgres:13.4-alpine
ports:
- "5432:5432"
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
container_name: smart-postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
restart: "unless-stopped"