docker_TP/TP4/docker-compose.yml

54 lines
899 B
YAML
Raw Normal View History

2024-03-17 11:31:57 +01:00
services:
redis:
image: redis/redis-stack
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: always
networks:
- back
redisinsight:
image: redis/redisinsight
ports:
- "5540:5540"
restart: always
volumes:
- redisinsight_data:/db
networks:
- back
php:
image: windok/php-redis
restart: always
volumes:
- ./web:/usr/share/nginx/html
environment:
NOM : "moguljak"
PRENOM : "tom"
deploy:
replicas: 2
networks:
- front
- back
nginx :
image: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./web:/usr/share/nginx/html
- ./nginx:/etc/nginx/conf.d
networks:
- front
networks:
front:
back:
volumes:
redis_data:
redisinsight_data: