docker
docker copied to clipboard
running from portainer
Hi, if running this compose from portainer is there an alternate instruction set?
I've tried both with and without the final step "docker-compose exec app php artisan setup:production" but haven't been able to get it actually running, the closest I've gotten is creating a login profile on the local page at which point I get an error message
It runs fine for me. You just need a docker-compose.yml
file, something like:
version: "3.4"
services:
app:
image: monica:apache
depends_on:
- db
ports:
- 3400:80
environment:
- DB_HOST=db
- DB_USERNAME=monica
- DB_PASSWORD=monica
- APP_ENV=production
- APP_DISABLE_SIGNUP=true
volumes:
- /opt/monica/storage:/var/www/html/storage
restart: always
db:
image: mysql:5.7
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=monica
- MYSQL_USER=monica
- MYSQL_PASSWORD=monica
volumes:
- /opt/monica/mysql:/var/lib/mysql
restart: always
That runs monica on port ~~4100~~ 3400 without SSL.
I'm running this from within Docker and on Synology ; using the above portainer image is the closest I have gotten but this is the error I get inside the logs:
Application is now live.
Monica v3.5.0 is set up, enjoy.
Database ready.AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.29.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.29.0.3. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 02 15:24:03.208628 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.51 (Debian) PHP/8.0.14 configured -- resuming normal operations
Essentially can't access the GUI from web.
"This site can’t provide a secure connection192.168.10.220 sent an invalid response. ERR_SSL_PROTOCOL_ERROR"
I can access the signup register page on http:// but its defaulting to https:// ; super confused.
@bugsbunny88 It seems like you're missing an SSL proxy. The config I posted above requires the site to be setup behind a reverse proxy that handles SSL termination. I personally use apache for that, but there are lots of options.
Hey man , thanks for the response.
So where do I set this up ? I have a mysql folder and a storage folder mounted.
I even tried running it with https but I can't get past the sign up screen at all.
I get flooded with :
"OPTIONS / HTTP/1.0" 200 281
in the logs and
Whoops! Something went wrong.
An error occured trying to register the user
Back to homepage
in the browser
Once again my setup is on a Synology and using a stack in Portainer. I can get to the sign up page and that is it .
There is no more "final step" installation. Running the container should be sufficient.
I know this is closed, but just to draw a circle around it, the now correct docker compose file which works in portainer (with instructions for docker compose) is in the readme of this repo - https://github.com/monicahq/docker#apache-version
Works for me!