From a1d95603a0e96d361ff6e3d35922e92f145b8db1 Mon Sep 17 00:00:00 2001 From: mco-system Date: Sun, 23 Apr 2023 17:57:37 +1100 Subject: [PATCH] fix: add extra hosts --- Makefile | 2 +- docker-compose.yml | 4 +++- thsf.Dockerfile | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cefd1a6..214a6e1 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ install: . thsf_venv/bin/activate; \ pip install -r requirements.txt ;\ pip install . ;\ - pip install gunicorn; \ + pip install gunicorn; run: set -e ;\ diff --git a/docker-compose.yml b/docker-compose.yml index 516474c..18c57c4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,9 @@ services: build: dockerfile: thsf.Dockerfile context: . + extra_hosts: + - "23.thsf.net:192.168.122.26" ports: - - "127.0.0.1:8042:8042" + - "0.0.0.0:8042:8042" image: thsf:latest container_name: thsf diff --git a/thsf.Dockerfile b/thsf.Dockerfile index 4b41b31..2bcf58e 100644 --- a/thsf.Dockerfile +++ b/thsf.Dockerfile @@ -1,3 +1,4 @@ +ARG PRETALX_HOSTS_ENTRY FROM python:3.9.16-bullseye as thsf_base RUN apt-get update -y && \ apt-get install -y bash make python3-pip && \