Add docker conf
This commit is contained in:
1 parent
7d107a8738
commit
70f536d8a4
3 files changed
+37
No files matched your search
@@ -0,0 +1,8 @@
|
|||||||
|
NODE_ENV=production
|
||||||
|
TOKEN=
|
||||||
|
GUILD_ID=
|
||||||
|
DB_HOST=mysql
|
||||||
|
DB_USERNAME=minzbot
|
||||||
|
DB_PASSWORD=
|
||||||
|
DB_DATABASE=minzbot
|
||||||
|
DB_ROOTPW=
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
bot:
|
||||||
|
command: sh -c "npm install && npm run dev"
|
||||||
@@ -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:
|
||||||
Reference in new issue
Block a user