forked from reactjs/server-components-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 756 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 756 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
version: "3.8"
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: notesadmin
POSTGRES_PASSWORD: password
POSTGRES_DB: notesapi
ports:
- '5432:5432'
volumes:
- ./scripts/init_db.sh:/docker-entrypoint-initdb.d/init_db.sh
- db:/var/lib/postgresql/data
notes-app:
build:
context: .
depends_on:
- postgres
ports:
- '4000:4000'
environment:
DB_HOST: postgres
PORT: 4000
volumes:
- ./notes:/opt/notes-app/notes
- ./public:/opt/notes-app/public
- ./scripts:/opt/notes-app/scripts
- ./server:/opt/notes-app/server
- ./src:/opt/notes-app/src
- ./credentials.js:/opt/notes-app/credentials.js
volumes:
db: