-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 1022 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
38
39
40
41
version: '3'
services:
app:
build: .
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/dist
ports:
- "8080:8080"
- "9229:9229"
environment:
- ALLOW_AUTOMATIC_MIGRATIONS=false
- ALLOW_UNSAFE_DEPLOYMENTS=true
- DANGEROUSLY_ALLOW_BASIC_AUTH=true
- DEBUG_SQL_STATEMENTS=true
- ERROR_STACK_ENABLED=true
- NODE_ENV=development
- PLAYGROUND_ENABLED=true
- PORT=8080
- POSTGRES_CONNECTION_TIMEOUT=5000
- POSTGRES_DB=store
- POSTGRES_HOST=postgres-db
- POSTGRES_PORT=5432
- POSTGRES_ADMIN_PASSWORD=admin
- POSTGRES_ADMIN_USER=admin
- POSTGRES_APP_PASSWORD=app-password
- POSTGRES_APP_USER=app
depends_on:
- postgres-db
command: npm run start:dev
postgres-db:
image: postgres:11.1-alpine
ports:
- "5432:5432"
expose:
- "5432"
environment:
- POSTGRES_DB=store
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin