forked from tryethernal/ethernal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
81 lines (73 loc) · 1.52 KB
/
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
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
81
version: "3.9"
volumes:
db:
driver: local
services:
postgres:
image: timescale/timescaledb:latest-pg14
ports:
- "5433:5432"
restart: always
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
web: &backend
volumes:
- ./run/:/app
- type: bind
source: ./run/.env
target: /app/run/.env
depends_on:
- pm2
build:
context: .
dockerfile: Dockerfile
target: dev_back
ports:
- "8888:8888"
env_file: run/.env
command: nodemon index.js
high_priority_worker:
<<: *backend
ports: []
command: nodemon workers/highPriority.js
medium_priority_worker:
<<: *backend
ports: []
command: nodemon workers/mediumPriority.js
low_priority_worker:
<<: *backend
ports: []
command: nodemon workers/lowPriority.js
front:
extra_hosts:
- "app.ethernal.local:0.0.0.0"
- "*.ethernal.explorer:0.0.0.0"
depends_on:
- web
ports:
- "8080:8080"
volumes:
- ./public:/app/public
- ./src:/app/src
- type: bind
source: package.json
target: /app/package.json
- type: bind
source: yarn.lock
target: /app/yarn.lock
build:
context: .
dockerfile: Dockerfile.front
env_file: .env.development
pm2:
ports:
- "9090:9090"
volumes:
- ./pm2-server:/app
build:
context: .
dockerfile: Dockerfile.pm2
target: dev
env_file: pm2-server/.env