1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- version: "3.5"
- services:
- mysql:
- image: mariadb:latest
- volumes:
- - db-data:/var/lib/mysql
- - "${DB_IMPORTE_FILE}:/docker-entrypoint-initdb.d/db.sql"
- networks:
- - database
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_NAME}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- solr:
- build: ./Docker/solr/
- volumes:
- - solr-cores:/opt/solr/server/solr
- networks:
- - solr
- ports:
- - 8983:8983
- redis:
- image: redis:3
- volumes:
- - redis-data:/data
- networks:
- - redis
- ports:
- - "6379"
- php:
- build: ./Docker/php/
- expose:
- - 9000
- volumes:
- - php-root-data:/root
- - "${PROJECT_ROOT}:/var/www/html"
- networks:
- - database
- - server
- - solr
- - redis
- depends_on:
- - mysql
- - solr
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8881:80
- networks:
- - database
- depends_on:
- - mysql
- environment:
- PMA_HOST: mysql
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8880:80
- volumes:
- - "${PROJECT_ROOT}:/var/www/html"
- - "${LOG_ROOT}:/var/log:rw"
- networks:
- - server
- - solr
- depends_on:
- - php
- volumes:
- db-data:
- solr-cores:
- redis-data:
- php-root-data:
- networks:
- database:
- solr:
- redis:
- server:
|