mirror of
https://gricad-gitlab.univ-grenoble-alpes.fr/tienyoun/presentations.git
synced 2026-09-26 21:41:08 +00:00
38 lines
571 B
YAML
38 lines
571 B
YAML
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: |