Skip to content

Commit 47e6444

Browse files
committed
log localhost behaviour on log
1 parent 43244a0 commit 47e6444

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ APP_SECURITY_KEY="REPLACE_THIS_WITH_YOUR_RANDOM_KEY123"
33
SERVER_PORT=80
44
DB_ENGINE="django.db.backends.mysql"
55
DB_NAME=example_db
6-
DB_HOST=mysql
6+
DB_HOST=locahost
77
DB_PORT=3306
88
DB_HOST_PORT=3306
99
DB_USER=example_user

.github/workflows/metton.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ jobs:
106106
task-definition: ${{ steps.mysql-task-def.outputs.task-definition }}
107107
service: ${{ env.ECS_SERVICE }}
108108
cluster: ${{ env.ECS_CLUSTER }}
109-
wait-for-service-stability: true
109+
wait-for-service-stability: false

docker-compose.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,6 @@ networks:
55
driver: bridge
66

77
services:
8-
python:
9-
build:
10-
context: .
11-
container_name: ${APP_NAME}_python_container
12-
volumes:
13-
- .:/app
14-
- static_volume:/var/www/static
15-
expose:
16-
- 8000
17-
env_file:
18-
- .env
19-
depends_on:
20-
- mysql
21-
healthcheck:
22-
test: ["CMD", "curl", "--fail", "http://python:8000/health"]
23-
interval: 30s
24-
timeout: 10s
25-
retries: 3
26-
start_period: 60s
27-
networks:
28-
- ${APP_NAME}_network
29-
308
mysql:
319
image: mysql:8.0.33
3210
container_name: ${APP_NAME}_mysql_container
@@ -61,6 +39,28 @@ services:
6139
networks:
6240
- ${APP_NAME}_network
6341

42+
python:
43+
build:
44+
context: .
45+
container_name: ${APP_NAME}_python_container
46+
volumes:
47+
- .:/app
48+
- static_volume:/var/www/static
49+
expose:
50+
- 8000
51+
env_file:
52+
- .env
53+
depends_on:
54+
- mysql
55+
healthcheck:
56+
test: ["CMD", "curl", "--fail", "http://python:8000/health"]
57+
interval: 30s
58+
timeout: 10s
59+
retries: 3
60+
start_period: 60s
61+
networks:
62+
- ${APP_NAME}_network
63+
6464
nginx:
6565
image: nginx:latest
6666
container_name: ${APP_NAME}_nginx_container

0 commit comments

Comments
 (0)