version: '3' services: smtp: container_name: framadate-smtp image: jeanberu/mailcatcher ports: - "1080:1080" db: container_name: framadate-db image: mysql:5.7 environment: - MYSQL_ROOT_PASSWORD=rootpassword - MYSQL_USER=framadate - MYSQL_PASSWORD=framadatedbpassword - MYSQL_DATABASE=framadate restart: always ports: - "3307:3306" framadate: container_name: framadate build: dockerfile: ./docker/stretch/Dockerfile context: . depends_on: - db - smtp ports: - 80:80 environment: - ENV=dev - APP_NAME=Framadate - ADMIN_MAIL=mon@email.fr - MYSQL_USER=framadate - MYSQL_PASSWORD=framadatedbpassword - MYSQL_DB=framadate - MYSQL_HOST=db - MYSQL_PORT=3307 - ADMIN_USER=admin - ADMIN_PASSWORD=adminpassword - APACHE_RUN_USER=#1000 - FRAMADATE_DEVMODE=1 - SMTP_SERVER=smtp:1025 restart: always volumes: - '.:/var/www/framadate'