Ajout d'une partie du TP4
This commit is contained in:
54
TP4/docker-compose.yml
Normal file
54
TP4/docker-compose.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user