Files
ipfs-bch-wallet-service/production/docker/docker-compose.yml
T

62 lines
1.5 KiB
YAML
Raw Normal View History

# Start the service with the command 'docker-compose up -d'
2021-07-13 12:34:51 -07:00
2021-12-29 17:46:05 -08:00
version: '3.9'
services:
mongo-bch-service:
image: mongo
container_name: mongo-bch-service
ports:
- '5555:27017' # <host port>:<container port>
volumes:
- ../data/mongodb:/data/db
command: mongod --logpath=/dev/null # -- quiet
restart: always
2021-07-13 12:34:51 -07:00
ipfs-bch-wallet:
image: ipfs/go-ipfs:v0.12.0
container_name: ipfs-bch-wallet
2021-12-29 17:46:05 -08:00
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
- ../data/go-ipfs/export:/export
# 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
bch-wallet-service:
build: ./
container_name: bch-wallet-service
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '10'
2021-10-12 13:37:31 -07:00
mem_limit: 1000mb
links:
2021-12-29 18:31:01 -08:00
- mongo-bch-service
- ipfs-bch-wallet
ports:
2021-12-29 17:46:05 -08:00
- '5010:5010' # <host port>:<container port>
volumes:
2021-10-11 09:05:57 -07:00
- ../data/ipfsdata:/home/safeuser/ipfs-bch-wallet-service/.ipfsdata
2021-12-30 07:52:22 -08:00
restart: always