-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 950 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
version: "3"
services:
node_backend:
container_name: "node_backend"
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- PGUSER=zacharymansell
- PGHOST=postgres
- PGPASSWORD=null
- PGDATABASE=mvp
- PGPORT=5432
- PORT=3000
pg:
image: "postgres:12"
container_name: "postgres"
environment:
- POSTGRES_USER=zacharymansell
- POSTGRES_PASSWORD=zacharymansell
ports:
- "5430:5432"
volumes:
- ./server/database/db_data:/var/lib/postgresql/data
- ./server/database/schema.sql:/docker-entrypoint-initdb.d/schema.sql
- ./server/database/postgres.conf:/etc/postgresql/postgresql.conf
# - ./server/database/pg_hba.conf:/etc/postgresql/pg_hba.conf
command: postgres -c config_file=/etc/postgresql/postgresql.conf
# command: postgres -c config_file=/etc/postgresql/pg_hba.conf
restart: always