wasmcloud/docker-compose.yml

47 lines
1.1 KiB
YAML

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
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"
ports:
- 8222:8222
volumes:
ipfs:
postgresql:
postgresql_data: