Getting sick of docker

This commit is contained in:
2021-02-04 00:42:33 +00:00
parent 9b8326e234
commit 4d71b1805c
2 changed files with 3 additions and 9 deletions
+3
View File
@@ -6,11 +6,14 @@ services:
build: build:
context: . context: .
environment: environment:
WEB_PORT: 3100
DB_HOSTNAME: database DB_HOSTNAME: database
DB_DATABASE: news DB_DATABASE: news
DB_USERNAME: news DB_USERNAME: news
DB_PASSWORD: charizard DB_PASSWORD: charizard
DB_TIMEZONE: Australia/Sydney DB_TIMEZONE: Australia/Sydney
QUERY_LIMIT: 10
QUERY_KEY: key
networks: networks:
- app-network - app-network
ports: ports:
-9
View File
@@ -1,9 +0,0 @@
#This file only needs to be run once, during initial setup
#Create the actual database
CREATE DATABASE IF NOT EXISTS news;
USE news;
#Create the database user
CREATE USER IF NOT EXISTS 'news'@'%' IDENTIFIED BY 'charizard';
GRANT ALL PRIVILEGES ON news.* TO 'news'@'%';