-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (36 loc) · 894 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:
cache:
image: redis
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
db:
image: postgis/postgis
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: trentino-trasporti
ports:
- '5432:5432'
expose:
- '5432'
node-app:
restart: on-failure
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
- db
- cache
volumes:
- ./src:/app/src
env_file:
- env.dev
ports:
- '8080:8080'
expose:
- '8080'
command: npm run dev:migrate