Atualizar docker-compose.yml
This commit is contained in:
@@ -1,21 +1,13 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
container_name: php_apache
|
ports: ["8080:80"]
|
||||||
ports:
|
depends_on: [redis]
|
||||||
- "8080:80"
|
|
||||||
volumes:
|
|
||||||
- .:/var/www/html
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
container_name: redis_cache
|
container_name: redis_cache
|
||||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
||||||
ports:
|
ports: ["6379:6379"]
|
||||||
- "6379:6379"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user