Add docker conf

This commit is contained in:
Minzkraut
2022-04-14 01:00:39 +02:00
parent 7d107a8738
commit 70f536d8a4
3 changed files with 37 additions and 0 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
version: "3.7"
services:
bot:
image: node:16.9.0-alpine
command: sh -c "npm install && node ."
restart: unless-stopped
depends_on:
- "mysql"
working_dir: /app
volumes:
- ./:/app
mysql:
image: mysql:8.0
ports:
- 3306:3306
volumes:
- minzbot-db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOTPW}
MYSQL_DATABASE: ${DB_DATABASE}
volumes:
minzbot-db: