docker-compose.yml
version: "3"
services:
app:
build:
context: ./
dockerfile: Dockerfile
image: lada-cache
container_name: lada-cache
restart: unless-stopped
working_dir: /var/www/
volumes:
- .:/var/www
networks:
- main
cache:
image: redis:alpine
container_name: redis
restart: unless-stopped
ports:
- 6379:6379
networks:
- main
networks:
main:
driver: bridge