misp-docker/docker-compose.yml

38 lines
975 B
YAML
Raw Normal View History

2018-06-20 09:23:48 +02:00
version: '2'
services:
web:
build: web
2019-08-06 17:17:19 +02:00
depends_on:
- db
container_name: misp_web
image: misp:latest
restart: unless-stopped
2018-06-20 13:34:20 +02:00
ports:
- "80:80"
2018-06-20 09:23:48 +02:00
volumes:
- /dev/urandom:/dev/random
- ${DATA_DIR}/web:/var/www/MISP
2018-06-20 09:23:48 +02:00
environment:
2019-09-03 15:29:47 +02:00
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MISP_ADMIN_EMAIL=${MISP_ADMIN_EMAIL}
- MISP_ADMIN_PASSPHRASE=${MISP_ADMIN_PASSPHRASE}
- MISP_BASEURL=${MISP_BASEURL}
- POSTFIX_RELAY_HOST=${POSTFIX_RELAY_HOST}
- TIMEZONE=${TIMEZONE}
2018-06-20 09:23:48 +02:00
db:
container_name: misp_db
image: mysql/mysql-server:5.7
restart: unless-stopped
2018-06-20 09:23:48 +02:00
volumes:
- ${DATA_DIR}/db:/var/lib/mysql
2018-06-20 09:23:48 +02:00
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}