Atualizar docker-compose.yml

This commit is contained in:
2025-11-09 21:15:48 +00:00
parent eed3423ec0
commit 4d13f1cc58

View File

@@ -1,21 +1,13 @@
version: '3.8'
services:
web:
build: .
container_name: php_apache
ports:
- "8080:80"
volumes:
- .:/var/www/html
depends_on:
- redis
ports: ["8080:80"]
depends_on: [redis]
redis:
image: redis:alpine
container_name: redis_cache
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
ports: ["6379:6379"]