-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add recipe for custom setup with pre-installed addons
- Loading branch information
Showing
5 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM friendsofredaxo/redaxo:5 | ||
|
||
# copy custom setup script | ||
# will be executed within the REDAXO container once the REDAXO setup was finished | ||
COPY custom-setup.sh /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/custom-setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# REDAXO + custom setup with pre-installed addons | ||
|
||
This setup demonstrates how to start up a REDAXO container with several addons already pre-installed. It makes use of a `custom-setup.sh` script that runs after REDAXO has been installed. | ||
|
||
1. Run `docker-compose build` to build from the contained Dockerfile and custom-setup script. | ||
2. Run `docker-compose up -d` to fire up Docker. | ||
3. Access REDAXO in your browser at [http://localhost/redaxo](http://localhost/redaxo): Login screen should be awesome neon, and some other addons are already installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
cd /var/www/html | ||
|
||
php redaxo/bin/console install:download developer 3.9.2 | ||
php redaxo/bin/console package:install developer | ||
|
||
php redaxo/bin/console install:download yform 4.2.1 | ||
php redaxo/bin/console package:install yform | ||
|
||
php redaxo/bin/console install:download yrewrite 2.10.0 | ||
php redaxo/bin/console package:install yrewrite | ||
|
||
php redaxo/bin/console install:download login_neon 1.0.0 | ||
php redaxo/bin/console package:install login_neon | ||
|
||
chown -R www-data:www-data ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
services: | ||
|
||
redaxo: | ||
build: . | ||
ports: | ||
- 80:80 | ||
volumes: | ||
- ./html:/var/www/html:cached | ||
depends_on: | ||
- db | ||
environment: | ||
REDAXO_SERVER: http://localhost | ||
REDAXO_SERVERNAME: "REDAXO" | ||
REDAXO_ERROR_EMAIL: [email protected] | ||
REDAXO_LANG: de_de | ||
REDAXO_TIMEZONE: Europe/London | ||
REDAXO_DB_HOST: db | ||
REDAXO_DB_NAME: redaxo | ||
REDAXO_DB_LOGIN: redaxo | ||
REDAXO_DB_PASSWORD: redaxo | ||
REDAXO_DB_CHARSET: utf8mb4 | ||
REDAXO_ADMIN_USER: admin | ||
REDAXO_ADMIN_PASSWORD: admin123 | ||
|
||
db: | ||
image: mysql:8 | ||
volumes: | ||
- ./db:/var/lib/mysql:cached | ||
environment: | ||
MYSQL_DATABASE: redaxo | ||
MYSQL_USER: redaxo | ||
MYSQL_PASSWORD: redaxo | ||
MYSQL_RANDOM_ROOT_PASSWORD: 'yes' |