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

114 lines
2.8 KiB
YAML
Raw Normal View History

# Start the service with the command 'docker-compose up -d'
2021-12-29 17:46:05 -08:00
version: '3.9'
services:
2022-03-25 18:45:32 -07:00
mongo-p2wdb-service:
2022-03-26 13:32:52 -07:00
image: mongo:4.4
2022-03-25 18:45:32 -07:00
container_name: mongo-p2wdb-service
ports:
2022-03-25 18:45:32 -07:00
- '5666:27017' # <host port>:<container port>
volumes:
- ../data/database:/data/db
command: mongod --logpath=/dev/null # -- quiet
restart: always
2021-12-29 17:46:05 -08:00
ipfs:
2022-03-25 18:45:32 -07:00
image: ipfs/go-ipfs:v0.12.0
2021-12-29 17:46:05 -08:00
container_name: ipfs
environment:
MY_ENV_VAR: 'placeholder'
2021-12-29 18:00:17 -08:00
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
mem_limit: 2000mb
2021-12-29 17:46:05 -08:00
ports:
- 4001:4001
- 172.17.0.1:5001:5001
- 172.17.0.1:8080:8080
2021-12-29 17:46:05 -08:00
volumes:
- ../data/go-ipfs/data:/data/ipfs
- ../../swarm.key:/data/ipfs/swarm.key
2021-12-29 17:46:05 -08:00
# 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
2022-03-25 18:45:32 -07:00
p2wdb:
2022-05-01 12:45:07 -07:00
#build:
# context: ./p2wdb/
# dockerfile: Dockerfile
image: christroutner/p2wdb-bch-dex:v1.6.2
2022-03-25 18:45:32 -07:00
container_name: p2wdb
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'
2022-03-25 18:45:32 -07:00
mem_limit: 1gb
links:
2022-03-25 18:45:32 -07:00
- mongo-p2wdb-service
ports:
2022-03-25 18:45:32 -07:00
# <host port>:<container port>
- 5667:5667 # REST API
#- 5668:5668 # IPFS TCP port
#- 5669:5669 # IPFS WS Port
volumes:
2022-03-25 18:45:32 -07:00
- ../data/ipfsdata/p2wdb:/home/safeuser/ipfs-p2wdb-service/.ipfsdata/p2wdb
restart: always
2022-03-25 18:45:32 -07:00
bch-dex:
2022-05-01 12:45:07 -07:00
#build:
# context: ./bch-dex/
# dockerfile: Dockerfile
2022-05-08 16:17:20 -07:00
image: christroutner/bch-dex:v1.7.0
2022-03-25 18:45:32 -07:00
container_name: bch-dex
2022-05-01 13:13:59 -07:00
environment:
CONSUMER_URL: 'https://free-bch.fullstack.cash'
2022-03-25 18:45:32 -07:00
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
mem_limit: 1000mb
links:
- mongo-p2wdb-service
- p2wdb
ports:
- '5700:5700' # <host port>:<container port>
volumes:
- ../scripts/wallet.json:/home/safeuser/bch-dex/wallet.json
restart: always
2022-03-25 18:45:32 -07:00
dex-ui:
2022-05-01 12:45:07 -07:00
#build:
# context: ./bch-dex-ui/
# dockerfile: Dockerfile
image: christroutner/bch-dex-ui:v1.6.5
2022-03-25 18:45:32 -07:00
container_name: dex-ui
environment:
SERVER: 'http://192.168.2.3'
2022-03-25 18:45:32 -07:00
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