storj/docker-compose.yaml
Matt Robinson c0e6b62708
Test all-in-one (#900)
* Add test for aio

* Don't trust the user to have images built for a version

* Make travis run the aio test

* Add missing values to docker-compose, sort some things, consider the gateway image

* today's changes

* config changed, again

* more fixes

* Expose satellite port on localhost:7778

* Add retries and a timeout around the big-testfile test in AIO

* Another config value changed

* Make this error message a little more useful

* Fix nil condition
2019-01-03 14:54:27 -05:00

70 lines
1.8 KiB
YAML

version: '3'
services:
test:
build:
context: .
dockerfile: test/Dockerfile
network_mode: service:test-redis
depends_on:
- test-postgres
test-redis:
image: redis
test-postgres:
image: postgres
environment:
- POSTGRES_USER=storj
- POSTGRES_PASSWORD=storj-pass
satellite:
image: storjlabs/satellite:${VERSION:-latest}
environment:
- API_KEY=abc123
- BOOTSTRAP_ADDR=localhost:8080
- STORJ_CHECKER_QUEUE_ADDRESS=redis://redis:6379/?db=0
- STORJ_DATABASE=postgres://postgres:postgres@postgres/satellite?sslmode=disable
- STORJ_LOG_LEVEL=debug
- STORJ_REPAIRER_QUEUE_ADDRESS=redis://redis:6379/?db=0
- STORJ_IDENTITY_SERVER_ADDRESS=satellite:7777
restart: always
ports:
- 7778:7777
links:
- redis
- postgres
depends_on:
- redis
- postgres
storagenode:
image: storjlabs/storagenode:${VERSION:-latest}
environment:
- SATELLITE_ADDR=satellite:7777
- STORJ_KADEMLIA_EXTERNAL_ADDRESS=storagenode:7777
- STORJ_KADEMLIA_OPERATOR_EMAIL=hello@storj.io
- STORJ_KADEMLIA_OPERATOR_WALLET=0x0000000000000000000000000000000000000000
- STORJ_LOG_LEVEL=debug
restart: always
links:
- satellite
gateway:
image: storjlabs/gateway:${VERSION:-latest}
command: --rs.min-threshold 1 --rs.max-threshold 1 --rs.repair-threshold 1 --rs.success-threshold 1
environment:
- API_KEY=abc123
- SATELLITE_ADDR=satellite:7777
- STORJ_LOG_LEVEL=debug
- STORJ_SERVER_ADDRESS=0.0.0.0:7777
ports:
- 7777:7777
restart: always
links:
- satellite
- storagenode
redis:
image: redis
postgres:
image: postgres:11.1
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=satellite