first commit

This commit is contained in:
Valentin
2023-05-15 04:43:37 +02:00
commit f6d0a9c4ae
12 changed files with 894 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
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: