docker nuxt front
This commit is contained in:
parent
153b7f601e
commit
cf9998c5f9
|
@ -14,4 +14,4 @@ RUN poetry install
|
|||
|
||||
COPY . ${WORKING_DIR}
|
||||
|
||||
CMD ["poetry", "run", "python", "manage.py", "runserver"]
|
||||
CMD ["poetry", "run", "python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
|
|
@ -29,7 +29,8 @@ SECRET_KEY = "django-insecure-ruo!wst&sb8(f9)j5u4rda-w!673lj_-c0a%gx_t@)ff*q*2ze
|
|||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
'192.168.103.159'
|
||||
'192.168.103.159',
|
||||
'back',
|
||||
]
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
'http://localhost:3000',
|
||||
|
|
|
@ -24,7 +24,7 @@ services:
|
|||
container_name: toinv-front
|
||||
restart: always
|
||||
expose:
|
||||
- "4173"
|
||||
- "3000"
|
||||
# depends_on:
|
||||
# back:
|
||||
# condition: service_healthy
|
||||
|
|
|
@ -37,7 +37,7 @@ http {
|
|||
server_name localhost;
|
||||
|
||||
location / {
|
||||
proxy_pass http://front:4173;
|
||||
proxy_pass http://front:3000;
|
||||
proxy_set_header Host $host:$server_port;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Reference in New Issue