-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (68 loc) · 1.59 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
services:
empor-io:
build:
context: .
dockerfile: ./EmporIO/Dockerfile
ports:
- '8000:8000'
volumes:
- ./EmporIO:/home/quant/code/EmporIO
- ./DataManager:/home/quant/code/DataManager
- ./Quantify:/home/quant/code/Quantify
depends_on:
postgres:
condition: service_healthy
stdin_open: true
tty: true
comercio-hub:
build:
context: .
dockerfile: ./ComercioHub/Dockerfile
ports:
- '5173:5173'
volumes:
- ./ComercioHub:/code/ComercioHub
- ./ComercioHub/node_modules:/code/ComercioHub/node_modules
develop:
watch:
- action: sync+restart
path: ./ComercioHub
target: /code/ComercioHub
ignore:
- node_modules
alpaca-marketstore:
image: alpacamarkets/marketstore:latest
ports:
- '5993:5993'
- '5995:5995'
volumes:
- ./config/mkts.yml:/etc/mkts.yml
- ./marketstore/data:/data
postgres:
image: postgres:14-alpine
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
nginx:
image: nginx:latest
ports:
- '443:443'
- '80:80'
volumes:
- ./config/default.conf:/etc/nginx/conf.d/default.conf
- ./ssl:/etc/ssl
depends_on:
- comercio-hub
- empor-io
# TODO: add options db service
volumes:
postgres_data: