add Dockerfile

This commit is contained in:
anlicheng 2024-10-20 10:42:50 +08:00
parent b43b42e841
commit 8f121402b2
2 changed files with 15 additions and 0 deletions

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM erlang:25.3
CMD /data/njau_bot/bin/njau_bot foreground

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '3.6'
services:
iot:
container_name: njau_bot
image: "njau_bot:1.0"
hostname: 'njau_bot'
restart: always
ports:
- "18085:18085/tcp"
volumes:
- /data/docker/njau_bot/:/data/njau/