forked from bengHak/github-commit-crawler
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 720 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 720 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'
services:
db:
image: postgres:13
env_file:
- .env
container_name: postgresql
restart: always
ports:
- '${DB_PORT}:${DB_PORT}'
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker/data:/var/lib/postgresql/data/
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
node:
build:
context: .
dockerfile: ./Dockerfile
env_file:
- .env
container_name: express_task
restart: on-failure
working_dir: '/app'
ports:
- '3000:3000'
volumes:
- ./:/app
- /app/node_modules
command: >
bash -c "npm install && mkdir -p log && cron && node app.js"
depends_on:
- db