Skip to content

Commit dd4f479

Browse files
committed
mysql and settings.py fixes
1 parent e84c9f5 commit dd4f479

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ COPY . .
1717
# Copia los scripts y cambia el archivo de settings
1818
COPY scripts /app/scripts
1919
RUN chmod +x /app/scripts/init.sh
20-
RUN mv /app/SoftServeAcademy/settings_deployment.py /app/SoftServeAcademy/settings.py
2120

2221
# Configura variables de entorno
2322
ENV PYTHONDONTWRITEBYTECODE 1

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The MVP will include the basic functionalities necessary to allow users to creat
9595

9696
3. **Run the Docker Compose:**
9797
```bash
98-
sudo docker compose up -d
98+
sudo docker compose up -d --pull always
9999
```
100100

101101
And that's it! You can now access the application opening your web browser and going to `http://localhost/`, this runs on the port 80 by default.

scripts/docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ services:
22
web:
33
image: quitotactico/softserve-academy
44
command: ["sh", "/app/scripts/init.sh"]
5+
environment:
6+
- DJANGO_SETTINGS_MODULE=SoftServeAcademy.settings_deployment
57
depends_on:
68
- db
79
ports:
@@ -10,7 +12,7 @@ services:
1012
- django-network
1113

1214
db:
13-
image: mysql:5.7
15+
image: mysql:8.0
1416
environment:
1517
MYSQL_ROOT_PASSWORD: 1234
1618
MYSQL_USER: admin

0 commit comments

Comments
 (0)