docker run -ti --rm --name exo \
-p 8080:8080 \
exoplatform/exo-community:4.3
docker volume create --name=data
docker volume create --name=logs
docker run -ti --rm --name exo \
-p 8080:8080 \
-v data:/srv/exo \
-v logs:/var/log/exo \
exoplatform/exo-community:4.3
# MySQL data volume creation
docker volume create --name=mysql_data
# MySQL server start with an exo schema
docker run -d --name mysql \
-v mysql_data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=my-secret-pw \
-e MYSQL_DATABASE=exo \
-e MYSQL_USER=exo \
-e MYSQL_PASSWORD=exo \
mysql:5.5
# Check MySQL logs
docker logs mysql
# creating new clean volumes for eXo Platform persistent data
docker volume create --name=exo_data
docker volume create --name=exo_logs
# starting eXo Platform configured with MySQL
docker run -ti --rm --name exo \
-p 8080:8080 \
-v exo_data:/srv/exo \
-v exo_logs:/var/log/exo \
--link mysql:mysql \
-e EXO_DB_TYPE=mysql \
-e EXO_DB_NAME=exo \
-e EXO_DB_USER=exo \
-e EXO_DB_PASSWORD=exo \
-e EXO_DB_HOST=mysql \
-e EXO_ADDONS_LIST=exo-jdbc-driver-mysql \
exoplatform/exo-community:4.3
# stop eXo Platform running container
docker stop exo
# stop MySQL running container
docker stop mysql
docker rm mysql
version: '2'
services:
exo:
image: exoplatform/exo-community:4.3
environment:
EXO_DB_TYPE: mysql
EXO_DB_NAME: exo
EXO_DB_USER: exo
EXO_DB_PASSWORD: exo
EXO_DB_HOST: mysql
EXO_ADDONS_LIST: exo-jdbc-driver-mysql
expose:
- "8080"
ports:
- "8080:8080"
volumes:
- exo_data:/srv/exo
- exo_logs:/var/log/exo
links:
- mysql
depends_on:
- mysql
mysql:
image: mysql:5.5
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_DATABASE: exo
MYSQL_USER: exo
MYSQL_PASSWORD: exo
volumes:
- mysql_data:/var/lib/mysql
volumes:
exo_data:
external:
name: exo_data
exo_logs:
external:
name: exo_logs
mysql_data:
external:
name: mysql_data