wasmcloud/docker-compose.yml

46 lines
1.0 KiB
YAML
Raw Normal View History

2019-12-08 20:06:45 +00:00
version: '3.7'
services:
ipfs:
image: "ipfs/go-ipfs:latest"
environment:
- IPFS_PROFILE=server
volumes:
- ipfs:/data/ipfs
worker:
deploy:
replicas: 3
restart: always
image: xena/wasmcloud
environment:
- IPFS_HOST=ipfs:5001
- NATS_URL=nats://nats:4222
- WORKER_COUNT=16
command: /usr/local/bin/wasmcloud-executor
web:
restart: always
image: xena/wasmcloud
ports:
- "3002:3002"
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"
volumes:
ipfs:
postgresql:
postgresql_data: