Skip to content

Commit ba56ab2

Browse files
committed
Revisado el contenido del modulo vi
1 parent 22a0941 commit ba56ab2

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

01-contenedores/contenedores-vi/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.3'
1+
version: "3.9" # optional since v1.27.0
22
services:
33
db:
44
image: mysql:5.7
@@ -30,6 +30,6 @@ services:
3030
- wordpress-network
3131
volumes:
3232
db_data:
33-
wordpress_data:
33+
wordpress_data:
3434
networks:
35-
wordpress-network:
35+
wordpress-network:

01-contenedores/contenedores-vi/my-app/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.8'
1+
version: '3.9'
22
services:
33
frontend:
44
build:
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
FROM python:3.4-alpine
1+
FROM python:3.7.11-slim
2+
23
ADD . /code
4+
35
WORKDIR /code
6+
47
RUN pip install -r requirements.txt
8+
9+
EXPOSE 8000
10+
511
CMD ["python", "app.py"]
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
version: "3.8"
1+
version: "3.9"
22
services:
3-
web:
4-
image: stackdemo
5-
build: .
3+
web:
4+
image: 0gis0/stackdemo
5+
deploy:
6+
replicas: 2
67
ports:
7-
- "8000:8000"
8+
- 8000
89
redis:
910
image: redis:alpine

0 commit comments

Comments
 (0)