You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
713 B

version: '3'
services:
webserver:
build: ./docker/apache
restart: unless-stopped
depends_on:
- db
volumes:
- .:/var/www/html:cached
- ./data:/var/compass:cached
ports:
- ${portWebserver}:80
db:
image: mysql:5.7
restart: unless-stopped
volumes:
- db_data:/var/lib/mysql
- ./docker/tmp:/tmp
- ./docker/database:/docker-entrypoint-initdb.d/
ports:
- ${portDatabase}:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${dbName}
MYSQL_USER: ${dbUser}
MYSQL_PASSWORD: ${dbPassword}
redis:
image: redis:5
restart: unless-stopped
volumes:
- redis_data:/data
volumes:
db_data:
redis_data: