Files
bch-dex/production/rpi-docker/docker-compose.yml
T

116 lines
2.9 KiB
YAML
Raw Normal View History

# Start the service with the command 'docker-compose up -d'
version: '3.9'
services:
2022-07-08 15:44:30 -07:00
mongo-bch-dex:
image: mongo:4.2.0
container_name: mongo-bch-dex
ports:
- '5666:27017' # <host port>:<container port>
volumes:
- ../data/database:/data/db
command: mongod --logpath=/dev/null # -- quiet
restart: always
ipfs:
2022-07-08 15:44:30 -07:00
#image: ipfs/go-ipfs:v0.13.0
image: odanado/go-ipfs:v0.11.0
container_name: ipfs
environment:
MY_ENV_VAR: 'placeholder'
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
mem_limit: 2000mb
ports:
- 4001:4001
- 172.17.0.1:5001:5001
- 172.17.0.1:8080:8080
volumes:
- ../data/go-ipfs/data:/data/ipfs
2022-07-08 15:44:30 -07:00
# - ../../swarm.key:/data/ipfs/swarm.key
# https://docs.docker.com/compose/compose-file/compose-file-v3/#command
# https://github.com/ipfs/go-ipfs/blob/91c52657166bcf86f2476926e4fe56694dc26562/Dockerfile#L115
command:
[
'daemon',
'--migrate=true',
'--agent-version-suffix=docker',
'--enable-pubsub-experiment'
]
restart: always
p2wdb:
2022-05-01 14:39:28 -07:00
#build:
# context: ./p2wdb/
# dockerfile: Dockerfile
2022-07-08 15:44:30 -07:00
image: christroutner/p2wdb-rpi-v3.0.6
container_name: p2wdb
2022-05-01 13:13:59 -07:00
environment:
CONSUMER_URL: 'https://free-bch.fullstack.cash'
DEBUG_LEVEL: 1
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
mem_limit: 1gb
links:
2022-07-08 15:44:30 -07:00
- mongo-bch-dex
ports:
# <host port>:<container port>
- 5667:5667 # REST API
#- 5668:5668 # IPFS TCP port
#- 5669:5669 # IPFS WS Port
volumes:
- ../data/ipfsdata/p2wdb:/home/safeuser/ipfs-p2wdb-service/.ipfsdata/p2wdb
2022-07-08 15:44:30 -07:00
- ./p2wdb/start-production.sh:/home/safeuser/ipfs-p2wdb-service/start-production.sh
restart: always
bch-dex:
#build:
# context: ./bch-dex/
# dockerfile: Dockerfile
2022-07-08 15:44:30 -07:00
image: christroutner/bch-dex-rpi:v1.8.2
container_name: bch-dex
2022-05-01 13:13:59 -07:00
environment:
CONSUMER_URL: 'https://free-bch.fullstack.cash'
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
mem_limit: 1000mb
links:
2022-07-08 15:44:30 -07:00
- mongo-bch-dex
- p2wdb
ports:
- '5700:5700' # <host port>:<container port>
2022-05-01 12:45:07 -07:00
volumes:
- ../scripts/wallet.json:/home/safeuser/bch-dex/wallet.json
2022-07-08 15:44:30 -07:00
- ./bch-dex/start-production.sh:/home/safeuser/bch-dex/start-production.sh
restart: always
dex-ui:
2022-05-01 14:39:28 -07:00
#build:
# context: ./bch-dex-ui/
# dockerfile: Dockerfile
2022-07-08 15:44:30 -07:00
image: christroutner/bch-dex-ui-rpi:v1.7.4
container_name: dex-ui
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
mem_limit: 500mb
links:
- bch-dex
ports:
- '4500:80' # <host port>:<container port>
# volumes:
# - ../data/ipfsdata:/home/safeuser/ipfs-service-provider/.ipfsdata
restart: always