-
Notifications
You must be signed in to change notification settings - Fork 54
Setup guide
Romain Trotard edited this page Aug 22, 2020
·
14 revisions
This is the recommended setup. Acrarium can work with an existing database, your own Tomcat instance or in Standalone mode. If you're not following the recommended setup, you should still read it as information is not duplicated into the other guides.
Install docker
and docker-compose
. It is helpful to be familiar with these tools.
Create a docker-compose.yml
file:
version: "3.7"
services:
database:
image: mysql
container_name: database
environment:
MYSQL_ROOT_PASSWORD: [[root_password]]
MYSQL_DATABASE: acrarium
MYSQL_USER: acrarium
MYSQL_PASSWORD: [[secure_password]]
expose:
- "3306"
volumes:
- acrarium_data:/var/lib/mysql
acrarium:
image: f43nd1r/acrarium:latest
container_name: acrarium
depends_on:
- database
ports:
- 8080:8080
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://database:3306/acrarium?useSSL=false&allowPublicKeyRetrieval=true&useLegacyDatetimeCode=false&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: acrarium
SPRING_DATASOURCE_PASSWORD: [[secure_password]]
SPRING_JPA_DATABASE-PLATFORM: org.hibernate.dialect.MySQL57Dialect
volumes:
acrarium_data:
Replace passwords with your own values.
Ensure docker and docker-compose are working, then run
docker-compose up
Go to localhost:8080
and follow instructions to create your first account. After logging in you will be able to create your first app.