-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-local.yml
32 lines (30 loc) · 1.05 KB
/
docker-compose-local.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
version: '3.3'
# This docker-compose is just for testing dockerfile locally but if you want to work on something
# I suggest you just use "npm start" and run application outside of docker, beucase this will not support watching changes
services:
impact-graph:
build:
context: .
command: npm run start:docker:locally
environment:
- ENVIRONMENT=local
- LOG_PATH=/usr/src/app/logs/impact-graph.log
restart: always
volumes:
# You should have a production.env file in the config folder
# We should bind config in two path, I think because running migrations(ts) needs one and running
# application(js) read from another path, if we change migrations two run them as js files then we need just on binding
- type: bind
source: ./config
target: /usr/src/app/config
- type: bind
source: ./config
target: /usr/src/app/build/config
- type: bind
source: ./logs
target: /usr/src/app/logs
ports:
- "4001:4000"
networks:
giveth:
external: true