Add docker conf
This commit is contained in:
8
.env.example
Normal file
8
.env.example
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
NODE_ENV=production
|
||||||
|
TOKEN=
|
||||||
|
GUILD_ID=
|
||||||
|
DB_HOST=mysql
|
||||||
|
DB_USERNAME=minzbot
|
||||||
|
DB_PASSWORD=
|
||||||
|
DB_DATABASE=minzbot
|
||||||
|
DB_ROOTPW=
|
||||||
5
docker-compose.dev.yml
Normal file
5
docker-compose.dev.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
bot:
|
||||||
|
command: sh -c "npm install && npm run dev"
|
||||||
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal 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:
|
||||||
Reference in New Issue
Block a user