wasmcloud/docker-compose.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

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