Docker config
This commit is contained in:
6
.env.example
Normal file
6
.env.example
Normal file
@@ -0,0 +1,6 @@
|
||||
ENV=production
|
||||
DB_HOST=localhost
|
||||
DB_USERNAME=scoreboard
|
||||
DB_PASSWORD=
|
||||
DB_DATABASE=scoreboard
|
||||
DB_ROOTPW=
|
||||
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
server:
|
||||
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:
|
||||
- bandbot-db:/var/lib/mysql
|
||||
- ./db:/tmp/db
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${DB_ROOTPW}
|
||||
MYSQL_DATABASE: ${DB_DATABASE}
|
||||
|
||||
volumes:
|
||||
bandbot-db:
|
||||
Reference in New Issue
Block a user