Add docker-compose env

This commit is contained in:
sfigato 2020-04-27 01:04:58 +02:00
parent 5aeedf7adc
commit f6b7d69dcf
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
3 changed files with 25 additions and 1 deletions

24
docker-compose.yml Normal file
View File

@ -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

View File

@ -1,4 +1,4 @@
SET database = brigate;
USE brigate;
CREATE TABLE contatti (
nome VARCHAR(255) NOT NULL,