12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- services:
- caddy:
- container_name: caddy
- image: caddy
- restart: unless-stopped
- ports:
- - "80:80"
- - "443:443"
- volumes:
- - ./Caddyfile:/etc/caddy/Caddyfile
- - ./src:/app/public
- networks:
- - internal
- depends_on:
- - php-fpm
- php-fpm:
- user: 1000:1000
- container_name: php-fpm
- build:
- dockerfile: ./Docker/php/Dockerfile
- restart: unless-stopped
- extra_hosts:
- - host.docker.internal:host-gateway # pour xdebug
- volumes:
- - ./src:/app/public
- networks:
- - internal
- - redis
- mariadb:
- container_name: mariadb
- build:
- dockerfile: ./Docker/mariadb/Dockerfile
- environment:
- - MYSQL_ROOT_PASSWORD=password
- - MYSQL_DATABASE=wordpress
- volumes:
- - ./data:/var/lib/mysql
- networks:
- - internal
- redis:
- user: 1000:1000
- container_name: redis
- build:
- dockerfile: ./Docker/redis/Dockerfile
- command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
- ports:
- - "6379:6379"
- restart: always
- networks:
- - redis
- phpmyadmin:
- container_name: phpmyadmin
- image: phpmyadmin/phpmyadmin
- ports:
- - 8080:80
- networks:
- - internal
- environment:
- PMA_HOST: mariadb
- PMA_PORT: 3306
- PMA_USER: root
- PMA_PASSWORD: password
- depends_on:
- - mariadb
- networks:
- internal:
- driver: bridge
- redis:
|