Commit 3abf6e6f authored by Wieck's avatar Wieck
Browse files

Create compose-file for set up with existing Moodle

parent 9f2a156e
## modocot-moodle-docker ## modocot-moodle-docker
This Docker image provides the LAMP stack, installs the latest bitnami-moodle including a SQLite3-Database and the [MoDoCoT moodle plugin for JUnit Test Assignments](https://transfer.hft-stuttgart.de/gitlab/HFTSoftwareProject/moodle-assignsubmission_modocot.git). This Docker image provides the LAMP stack, installs the latest bitnami-moodle including a SQLite3-Database and the [MoDoCoT moodle plugin for JUnit Test Assignments](https://transfer.hft-stuttgart.de/gitlab/HFTSoftwareProject/moodle-assignsubmission_modocot.git).
Use the 'docker-compose_dev.yml' to set up the Project plus a Moodle-Frontend and a Database. The Plugin will be installed automatically as well as the Moodle environment. The Login is 'user' for the username and 'bitnami' for the password.
Use the 'docker-compose.yml' to set up just the Project. You will need a running Moodle and install the Plugin manually.
For both ways you will need to configure the IP-Adress for the MoDoCoT-Backend Container. It runs on Port '8800', so it is '\<Your-IP>:8800'.
## Run docker-compose ## Run docker-compose
docker-compose up --build -d docker-compose up --build -d
......
version: '2' version: '2'
services: services:
mariadb: backend:
container_name: mariadb_compose container_name: backend_compose
image: 'bitnami/mariadb:latest' image: hftstuttgart/modocot-backend
environment:
- MARIADB_USER=bn_moodle
- MARIADB_DATABASE=bitnami_moodle
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- 'mariadb_data:/bitnami'
moodle:
container_name: moodle_compose
build:
context: .
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- MOODLE_DATABASE_USER=bn_moodle
- MOODLE_DATABASE_NAME=bitnami_moodle
- ALLOW_EMPTY_PASSWORD=yes
ports: ports:
- '80:80' - "8800:8080"
- '443:443'
volumes:
- 'moodle_data:/bitnami'
depends_on:
- mariadb
server: server:
image: gitea/gitea:latest image: gitea/gitea:latest
environment: environment:
...@@ -39,8 +18,3 @@ services: ...@@ -39,8 +18,3 @@ services:
ports: ports:
- "3000:3000" - "3000:3000"
- "222:22" - "222:22"
volumes:
mariadb_data:
driver: local
moodle_data:
driver: local
version: '2'
services:
mariadb:
container_name: mariadb_compose
image: 'bitnami/mariadb:latest'
environment:
- MARIADB_USER=bn_moodle
- MARIADB_DATABASE=bitnami_moodle
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- 'mariadb_data:/bitnami'
moodle:
container_name: moodle_compose
build:
context: .
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- MOODLE_DATABASE_USER=bn_moodle
- MOODLE_DATABASE_NAME=bitnami_moodle
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '80:80'
- '443:443'
volumes:
- 'moodle_data:/bitnami'
depends_on:
- mariadb
backend:
container_name: backend_compose
image: hftstuttgart/modocot-backend
ports:
- "8800:8080"
server:
image: gitea/gitea:latest
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
volumes:
mariadb_data:
driver: local
moodle_data:
driver: local
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment