diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..469dbab --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +--- +version: "3.7" + +services: + db: + image: mysql:5 + environment: + - MYSQL_ROOT_PASSWORD=password + - MYSQL_DATABASE=brigate + - MYSQL_USER=brigate + - MYSQL_PASSWORD=password + volumes: + - /var/lib/mysql + - ./sql/mysql/:/docker-entrypoint-initdb.d/ + ports: + - 3306:3306 + + brigate: + build: + dockerfile: ./Dockerfile + context: . + image: unit/centralino_brigate:0.1.0 + ports: + - 8080:8080 diff --git a/script_mysql.sql b/sql/mysql/script_mysql.sql similarity index 95% rename from script_mysql.sql rename to sql/mysql/script_mysql.sql index 41eedd8..628a6e3 100644 --- a/script_mysql.sql +++ b/sql/mysql/script_mysql.sql @@ -1,4 +1,4 @@ -SET database = brigate; +USE brigate; CREATE TABLE contatti ( nome VARCHAR(255) NOT NULL, diff --git a/script_oracle.sql b/sql/oracle/script_oracle.sql similarity index 100% rename from script_oracle.sql rename to sql/oracle/script_oracle.sql