123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- version: "3.5"
- services:
- mysqld7:
- image: mariadb:latest
- volumes:
- - db-data-d7:/var/lib/mysql
- - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- - ./Docker/mysql/bashrc:/root/.bashrc:ro
- networks:
- - database
- hostname: mysqld7
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_NAME}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- redisd7:
- image: redis:4
- command: redis-server /usr/local/etc/redis.conf
- volumes:
- - redis-data-d7:/data
- - ./Docker/redis/redis.conf:/usr/local/etc/redis.conf
- networks:
- - redisd7
- ports:
- - "6389"
- phpd7:
- build: ./Docker/php/
- expose:
- - 9000
- user: ${USER_UID}:${USER_GID}
- volumes:
- - php-data-d7:/home/${USER_UNAME}
- - "${D7_ROOT}:/var/www/html/clameurs-lawebserie.fr/public_html"
- - "${LOG_ROOT}/php:/var/log:rw"
- - "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini"
- working_dir: "/var/www/html/clameurs-lawebserie.fr/public_html"
- networks:
- - database
- - redisd7
- - server
- depends_on:
- - mysqld7
- - redisd7
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8991:80
- networks:
- - database
- depends_on:
- - mysqld7
- environment:
- PMA_HOSTS: mysqld7
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8990:80
- volumes:
- - "${D7_ROOT}:/var/www/html/clameurs-lawebserie.fr/public_html"
- - "${LOG_ROOT}:/var/log:rw"
- - "${STATIC_ROOT}:/var/www/html/clameurs-lawebserie.fr/static_html"
- working_dir: "/var/www/html/clameurs-lawebserie.fr/public_html"
- networks:
- - server
- depends_on:
- - phpd7
- # npm:
- # build: ./Docker/npm
- # user: ${USER_UID}:${USER_GID}
- # volumes:
- # - "${D7_THEME_ROOT}:/app"
- # - npm-user-data:/home/${USER_UNAME}
- # # ports:
- # # - 8788:8788
- # working_dir: "/app"
- volumes:
- db-data-d7:
- redis-data-d7:
- php-data-d7:
- # npm-user-data:
- networks:
- database:
- redisd7:
- server:
|