56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
version: '3.7'
|
|
services:
|
|
worker:
|
|
deploy:
|
|
replicas: 3
|
|
restart: always
|
|
build: .
|
|
environment:
|
|
- IPFS_HOST=ipfs:5001
|
|
- NATS_URL=nats://nats:4222
|
|
- WORKER_COUNT=16
|
|
command: /usr/local/bin/wasmcloud-executor
|
|
depends_on:
|
|
- nats
|
|
- ipfs
|
|
web:
|
|
restart: always
|
|
build: .
|
|
ports:
|
|
- "3002:3002"
|
|
depends_on:
|
|
- nats
|
|
- postgres
|
|
- ipfs
|
|
environment:
|
|
- DATABASE_KIND=postgres
|
|
- "DATABASE_URL=host=postgres port=5432 user=azurediamond dbname=wasmcloud password=hunter2 sslmode=disable"
|
|
- NATS_URL=nats://nats:4222
|
|
- IPFS_HOST=ipfs:5001
|
|
command: /usr/local/bin/wasmcloudd
|
|
|
|
postgres:
|
|
image: "postgres:alpine"
|
|
environment:
|
|
- POSTGRES_PASSWORD=hunter2
|
|
- POSTGRES_USER=azurediamond
|
|
- POSTGRES_DB=wasmcloud
|
|
volumes:
|
|
- postgresql:/var/lib/postgresql
|
|
- postgresql_data:/var/lib/postgresql/data
|
|
nats:
|
|
image: "nats:latest"
|
|
ports:
|
|
- 8222:8222
|
|
ipfs:
|
|
image: "ipfs/go-ipfs:latest"
|
|
environment:
|
|
- IPFS_PROFILE=server
|
|
volumes:
|
|
- ipfs:/data/ipfs
|
|
|
|
volumes:
|
|
ipfs:
|
|
postgresql:
|
|
postgresql_data:
|