1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- version: "3.8"
- services:
- mysql:
- image: mariadb:latest
- volumes:
- - db-data:/var/lib/mysql
- - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- - ./Docker/mysql/bashrc:/root/.bashrc:ro
- - "${DB_IMPORTE_FILE}:/docker-entrypoint-initdb.d/enfrancais.sql"
- networks:
- - database
- hostname: mysql
- environment:
- MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
- MYSQL_DATABASE: "${DB_NAME}"
- MYSQL_USER: "${DB_USERNAME}"
- MYSQL_PASSWORD: "${DB_PASSWORD}"
- redis:
- image: redis:4
- command: ["redis-server", "--appendonly", "yes"]
- volumes:
- - redis-data:/data
- networks:
- - redis
- ports:
- - "6389"
- php:
- build: ./Docker/php/
- expose:
- - 9000
- user: ${USER_UID}:${USER_GID}
- volumes:
- - php-user-data:/home/${USER_UNAME}
- - "${API_ROOT}:/var/www/html/api"
- - "${LOG_ROOT}/php:/var/log:rw"
- working_dir: "/var/www/html/api/src"
- networks:
- - database
- - redis
- - server
- depends_on:
- - mysql
- - redis
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- ports:
- - 8991:80
- networks:
- - database
- depends_on:
- - mysql
- environment:
- PMA_HOSTS: mysql,mysql-legacy
- nginx:
- build: ./Docker/nginx/
- ports:
- - 8990:80
- volumes:
- - "${API_ROOT}:/var/www/html/api"
- - "${APP_ROOT}:/var/www/html/app"
- - "${LOG_ROOT}:/var/log:rw"
- working_dir: "/var/www/html/api/"
- networks:
- - server
- depends_on:
- - php
- # app:
- # build: ./Docker/app
- # user: ${USER_UID}:${USER_GID}
- # volumes:
- # - "${APP_ROOT}:/app"
- # - npm-user-data:/home/${USER_UNAME}
- # ports:
- # - 8988:8988
- # working_dir: "/app"
- # environment:
- # - APP_ENV=dev
- volumes:
- php-user-data:
- db-data:
- redis-data:
- # npm-user-data:
- networks:
- database:
- redis:
- server:
|