Compose UPdate

This commit is contained in:
dong 2024-12-27 19:51:36 +08:00
parent 369d1bc40f
commit feff8ea021

View File

@ -1,19 +1,18 @@
version: '3.8'
services:
app:
build: .
ports:
- "8080:8080"
environment:
- REDIS_HOST=localhost
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=*f2iPMa#N42!M
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- app-network
networks:
app-network:
driver: bridge
redis:
image: redis
ports:
- "6379:6379"
command:
- --requirepass "*f2iPMa#N42!M"
- --appendonly yes
volumes:
- redis_data:/data