-
Alexey Lunin authoredb427d75d
docker-compose.yml 1.80 KiB
version: '3.8'
services:
#===================== ISSUER =========================#
agent-issuer:
profiles:
- issuer
container_name: agent-issuer
image: node:18.16.0
volumes:
- ./data/node_modules:/app/node_modules
- ./data/dist/apps/agent:/app/
working_dir: /app
command: node main.js
ports:
- "8080:8080"
- "8001:8001"
env_file:
- ./env/issuer.env
depends_on:
builder:
condition: service_completed_successfully
#===================== holder =========================#
agent-holder:
profiles:
- holder
container_name: agent-holder
image: node:18.16.0
volumes:
- ./data/node_modules:/app/node_modules
- ./data/dist/apps/agent:/app/
working_dir: /app
command: node main.js
ports:
- "8090:8080"
- "6001:6001"
env_file:
- ./env/holder.env
depends_on:
builder:
condition: service_completed_successfully
#===================== INFRA =========================#
builder:
privileged: true
image: node:18.16.0-buster-slim
volumes:
- ./../yarn.lock:/app/yarn.lock
- ./../package.json:/app/package.json
- ./../apps:/app/apps
- ./../libs:/app/libs
- ./../nx.json:/app/nx.json
- ./../tsconfig.base.json:/app/tsconfig.base.json
- ./data/node_modules:/app/node_modules
- ./data/dist:/app/dist
working_dir: /app
command:
- sh
- -c
- |
whoami
apt update -y && apt install python3 git make build-essential -y
yarn install
yarn build:all
exit 0
pg_db:
image: 'postgres:latest'