-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 901 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
version: '3.9'
services:
server:
build:
context: .
target: development
volumes:
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder/37898591#37898591
- .:/app
- ./node_modules:/app/node_modules
ports:
- "8080:8080"
environment:
- NODE_ENV=development
- GOOGLE_APPLICATION_CREDENTIALS=/app/.firebase/auth-2e6e0-firebase-adminsdk-2ok5v-3088907b41.json # path to your LOCAL service account key
db:
image: postgres
restart: always
shm_size: 128mb
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres:/var/lib/postgresql/data
ports:
- '5432:5432'
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "80:80"
env_file:
- .env
volumes:
- pgadmin-data:/var/lib/pgadmin
volumes:
postgres:
pgadmin-data: