Hello,
I’m trying to set up lizmap on a Debian server.
I would like to dockerize lizmap as well as other software that will allow to manage docker and my db (portainer, pgadmin, cloud cmd).
I made my docker-compose.yml file and when I launch it on my computer everything works as it should.
The problem is when I run docker-compose up --build on my Debian server, when I try to access one of the services via the web it doesn’t work.
I tried to go through localhost:<defined port>
as well as <ip of the server>:<defined port>
and it doesn’t work.
I’ve been going around in circles for several days and I can’t find the answer to my problem on google.
Here’s my docker-compose.yml file:
version: '3.1'
services:
web:
container_name: web
image: httpd:2.4
volumes:
- ./php:/var/www/html
ports:
- "8080:80"
depends_on:
- postgis
tty: true
stdin_open: true
lizmap:
container_name: lizmap
image: jancelin/docker-lizmap:3.2.2
restart: always
ports:
- 3080:3080
- 442:442
volumes:
- qgis:/home
- var:/var/www/websig/lizmap/var
depends_on:
- postgis
- qgis-server
qgis-server:
container_name: qgis-server
image: jancelin/qgis-server:2.18LTR
restart: always
environment:
- QGIS_PROJECT_FILE=/data/osm.qgs
- QGIS_SERVER_LOG_LEVEL=0
- DEBUG=1
volumes:
- qgis:/home
postgis:
container_name: postgis
image: kartoza/postgis:14
ports:
- '5433:5433'
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: secret
volumes:
- postgis:/var/lib/postgresql
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: secret
PGADMIN_LISTEN_PORT: 5080
ports:
- "5080:5080"
volumes:
- pgadmin-data:/var/lib/pgadmin
portainer:
container_name: portainer
image: portainer/portainer
restart: always
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer:/data
cloud:
container_name: cloud
image: coderaiser/cloudcmd:latest-alpine
restart: always
ports:
- 8000:8000
volumes:
- qgis:/mnt/fs
volumes:
pgadmin-data:
php:
postgis:
portainer:
qgis:
var:
And my server is under Debian 10 Buster
Thanks for reading and if anyone has a solution, i’ll be grateful.