-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 907 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
42
43
version: '3.7'
services:
db:
image: postgres:alpine
container_name: db
restart: unless-stopped
volumes:
- psql:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- '5432:5432'
cache:
image: 'redis:alpine'
container_name: cache
restart: unless-stopped
volumes:
- redis:/data
ports:
- '6379:6379'
people:
build: ./
image: people
container_name: people
restart: unless-stopped
command: npm run dev
volumes:
- ./:/usr/src/app/
- dependencies:/usr/src/app/node_modules
depends_on:
- db
environment:
CACAHE_URL: redis://cache
DATABASE_URL: 'postgresql://postgres:postgres@db:5432/postgres'
NODE_ENV: development
ports:
- '3000:3000'
volumes:
dependencies:
psql:
redis: