forked from tomlagier/crypto-dca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
80 lines (73 loc) · 1.61 KB
/
docker-compose-dev.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3"
services:
# chron:
# build: ./chron
# image: crypto-dca-chron:latest
# container_name: crypto-dca-chron
# env_file: .env-chron
# ports:
# - 8087:8087
app:
build:
context: ./app
dockerfile: Dockerfile-dev
image: crypto-dca-app:latest
container_name: crypto-dca-app
env_file: config/.env
volumes:
- ./app:/usr/www
- ./app/node_modules:/tmp/node_modules
ports:
- 8087:8087
api:
build:
context: ./api
dockerfile: Dockerfile-dev
image: crypto-dca-api:latest
container_name: crypto-dca-api
env_file: config/.env
environment:
- NODE_ENV=development
volumes:
- ./api:/www
ports:
- 8088:8088
api-test:
build:
context: ./api
dockerfile: Dockerfile-dev
image: crypto-dca-api:latest
container_name: crypto-dca-api-test
env_file: config/.env
environment:
- NODE_ENV=test
entrypoint: npm run watch-tests
volumes:
- ./api:/www
api-debug:
build:
context: ./api
dockerfile: Dockerfile-dev
image: crypto-dca-api:latest
container_name: crypto-dca-api-debug
env_file: config/.env
environment:
- NODE_ENV=development
entrypoint: npx nodemon --inspect-brk=0.0.0.0:9001 ./index.js
volumes:
- ./api:/www
ports:
- 8090:8088
- 9001:9001
db:
build: ./db
image: crypto-dca-db:latest
container_name: crypto-dca-db
env_file: config/.env
volumes:
- crypto-dca-db:/var/lib/postgresql/data
ports:
- 5432:5432
volumes:
crypto-dca-db:
driver: local