diff --git a/.gitignore b/.gitignore index c6372fa..e9271a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ process.env test.txt -config.js node_modules diff --git a/config.js b/config.js new file mode 100644 index 0000000..86f5e5f --- /dev/null +++ b/config.js @@ -0,0 +1,9 @@ +module.exports = { + database: { + host: process.env.DB_HOST, + user: process.env.DB_USER, + password: process.env.DB_PASSWORD, + database: process.env.DB_DATABASE + }, + port: 8383 +} \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 60b9e8e..7ca3b51 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,8 +1,5 @@ name: minis-data-old -networks: - minis-data-old: {} - services: db: image: mariadb:latest @@ -16,7 +13,7 @@ services: networks: - minis-data-old volumes: - - ./init.sql:/docker-entrypoint-initdb.d/init.sql + - "./init.sql:/docker-entrypoint-initdb.d/init.sql" ports: - "3306:3306" healthcheck: @@ -40,4 +37,7 @@ services: DB_HOST: mariadb DB_USER: minis DB_PASSWORD: minis - DB_DATABASE: minis \ No newline at end of file + DB_DATABASE: minis + +networks: + minis-data-old: \ No newline at end of file