Hi all,
I try to make a docker-compose file for my swarm.
I tried many options already but cannot find it. Anyone here who can help me?
I have no traefik or nginx (yet).
if I use my docker-compose file with: docker-compose up, it works fine, I can access the web interface via port 8443. (which connects to port 443 in the container)
If I use: docker stack deploy -c ./docker-compose.yml misp, the containers get deployed but I cannot access the web interface on 8443 even not on any port.
Please! Anyone tell me what I am doing wrong!
version: '3'
services:
misp-web:
networks:
- misp
container_name: misp_web
depends_on:
- misp-db
image: blackcat79/misp-swarm
ports:
- "8480:80"
- "8443:443"
volumes:
- /dev/urandom:/dev/random
- misp-web:/var/www/MISP
environment:
- MYSQL_HOST=misp_db
- MYSQL_DATABASE=misp
- MYSQL_USER=misp
- MYSQL_PASSWORD=misp
- MISP_ADMIN_EMAIL=admin@admin.test
- MISP_ADMIN_PASSPHRASE=admin
- MISP_BASEURL=
- POSTFIX_RELAY_HOST=relay.fqdn
- TIMEZONE=Europe/Brussels
misp-db:
container_name: misp_db
networks:
- misp
image: mysql/mysql-server:5.7
volumes:
- misp-db:/var/lib/mysql
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=misp
- MYSQL_USER=misp
- MYSQL_PASSWORD=misp
- MYSQL_ROOT_PASSWORD=misp
volumes:
misp-db:
misp-web:
networks:
misp: