-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
76 lines (72 loc) · 1.73 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
version: "2.1"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- './frontend:/app'
- './frontend/node_modules:/app/node_modules'
ports:
- '3001:3000'
environment:
- NODE_ENV=development
postgresdb:
ports:
- "5432:5432"
image: postgres:latest
volumes:
- ./persistent_data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: cortex
POSTGRES_USER: admin
POSTGRES_PASSWORD: WKLpwoDJd03DJ423DJwlDJlaDJsdDJsdDJlDJsa
RUN_CMD: "pipenv run python autonomous_hegician/skills/option_management/db_communication.py"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 10s
retries: 5
ganachecli:
hostname: ganachecli
build:
context: ./ganachecli/
dockerfile: Dockerfile
ports:
- "7545:7545"
volumes:
- ./persistent_data/ganache_data:/ganache_data
api:
environment:
TESTS: "False"
DEBUG: "False"
RUN_CMD: "pipenv run start_api"
PIPENV_DOTENV_LOCATION: /app/.env_container
build:
context: ./agents
dockerfile: Dockerfile
depends_on:
postgresdb:
condition: service_healthy
ports:
- '8080:8080'
volumes:
- './agents:/app'
restart: always
agents:
environment:
TESTS: "False"
DEBUG: "False"
PIPENV_DOTENV_LOCATION: /app/.env_container
RUN_CMD: "pipenv run start_agent"
build:
context: ./agents
dockerfile: Dockerfile
depends_on:
postgresdb:
condition: service_healthy
ganachecli:
condition: service_healthy
volumes:
- './agents:/app'
restart: always