Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker-compose.simple-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
container_name: mysql
image: mysql:8.0.28-oracle
command: ["mysqld", "--disable-log-bin"]
restart: always
volumes:
- db-data:/var/lib/mysql
- ./mysql/conf.d:/etc/mysql/conf.d
Expand All @@ -16,9 +17,11 @@ services:
redis:
container_name: redis
image: redis:6.0.16-alpine
restart: always
eramba:
container_name: eramba
image: ghcr.io/eramba/eramba:latest
restart: always
ports:
- 8443:443
volumes:
Expand Down Expand Up @@ -50,6 +53,7 @@ services:
image: ghcr.io/eramba/eramba:latest
command: ["cron", "-f"]
entrypoint: ["/docker-cron-entrypoint.sh"]
restart: always
volumes:
- data:/var/www/eramba/app/upgrade/data
- app:/var/www/eramba
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ su -s /bin/bash -c "php app/upgrade/bin/cake.php queue worker end all -q" www-da
# Either load a clean database if eramba is deployed for the first time
# or migrate and update to the latest database version if switching to a new/different image, if applicable,
# otherwise if not possible to update due to broken DB history sync, the process will exit with error.
su -s /bin/bash -c "php app/upgrade/bin/cake.php database initialize" www-data
su -s /bin/bash -c "php app/upgrade/bin/cake.php database initialize" www-data || exit

# Lets de-activate maintenance mode
#su -s /bin/bash -c "php app/upgrade/bin/cake.php setup.maintenance_mode deactivate" www-data
Expand Down