-
Notifications
You must be signed in to change notification settings - Fork 0
1. Download and setup
Nacho Martínez edited this page May 26, 2020
·
1 revision
There are two alternatives to execute the app:
You don't need to download the code. It will pull the last version of the app available in our DockerHub repository (this version correspond to version of master branch of this repository, it is the last stable version of the app).
-
docker
-
docker-compose
- Create a docker-compose.yml like this:
version: "3"
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: santaTecla1234
MYSQL_DATABASE: santatecla
MYSQL_USER: santaTecla
MYSQL_PASSWORD: santaTecla1234
santatecla:
image: sigma98/santatecla
restart: on-failure
links:
- db
depends_on:
- db
ports:
- "80:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db/santatecla?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: santaTecla
SPRING_DATASOURCE_PASSWORD: santaTecla1234
- Open a terminal and (in the same directory you've created the docker-compose.yml) execute the command:
docker-compose up
The app will run in http://localhost
You need to download the code. It will build all the code you have downloaded.
-
docker
-
docker-compose
-
Windows
-
Download the code
-
Go to
dockerdirectory (in the root of the project) -
Execute the script
run.ps1
It will build both projects (front and back) and execute the complete app (this process can take a few minutes). The app will run in http://localhost