Working demo

This commit is contained in:
2024-07-27 19:52:58 +02:00
parent ef22545b53
commit 858d0d674b
11 changed files with 1666 additions and 20 deletions
+38
View File
@@ -0,0 +1,38 @@
services:
database:
image: redis:alpine3.20
volumes:
- database-data:/data
command: redis-server --save 60 1
networks:
- back
frontend:
image: docker-demo/front
build: ./front
volumes:
- ./test.txt:/usr/local/apache2/htdocs/test.txt
ports:
- 80:80
networks:
- front
backend:
image: docker-demo/backend
build: ./back
environment:
- REDIS_URL=redis://database
depends_on:
- database
networks:
- back
- front
networks:
front:
back:
volumes:
database-data: