Dockerfile: remove CMD line and docker-compose file provided

This commit is contained in:
mjhatami 2024-07-03 22:24:09 +03:30
parent cc73fe7116
commit 014871249a
2 changed files with 36 additions and 2 deletions

View File

@ -62,5 +62,3 @@ EXPOSE 18081
USER monero
ENTRYPOINT ["monerod"]
CMD ["--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=18080", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=18081", "--non-interactive", "--confirm-external-bind"]

36
docker-compose.yml Normal file
View File

@ -0,0 +1,36 @@
services:
monero:
container_name: monero
build:
context: .
restart: always
ports:
- 18080:18080
- 18081:18081
- 18082:18082
- 18083:18083
- 18084:18084
command:
- --p2p-bind-ip=0.0.0.0
- --p2p-bind-port=18080
- --rpc-bind-ip=0.0.0.0
- --rpc-bind-port=18081
- --non-interactive
- --rpc-ssl=disabled
- --disable-rpc-ban
- --confirm-external-bind
- --zmq-pub=tcp://0.0.0.0:18084
- --zmq-rpc-bind-port=1882
- --zmq-rpc-bind-ip=0.0.0.0
- --log-level=4
volumes:
- bitmonero:/root/.bitmonero
networks:
- monero
volumes:
bitmonero: {}
networks:
monero:
driver: bridge