Update Add Python
This commit is contained in:
3
.env
3
.env
@@ -1,4 +1 @@
|
||||
AUTHENTIK_ERROR_REPORTING__ENABLED=true
|
||||
PG_PASS=guR8uchQhQFAGi4yXfHPrF2AHTgN15sOViDL7tu0bfoiPmdI
|
||||
AUTHENTIK_SECRET_KEY=HeBg31UJE0AEK2JNWpXx1+6v7SjlYr9HKxDZi66dNsrhy+9XpOz9LOw81bWNHDo/lFiORMxVa1f+
|
||||
q1Yt
|
||||
|
||||
@@ -15,7 +15,7 @@ services:
|
||||
retries: 5
|
||||
timeout: 5s
|
||||
volumes:
|
||||
- ./authentik/database:/var/lib/postgresql/data
|
||||
- ./database:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${PG_PASS:?database password required}
|
||||
POSTGRES_USER: ${PG_USER:-authentik}
|
||||
@@ -40,7 +40,18 @@ services:
|
||||
command: php artisan serve --host=0.0.0.0 --port=8080
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
python-listener:
|
||||
build:
|
||||
context: ./htdocs/listenerlist
|
||||
dockerfile: Dockerfile
|
||||
container_name: python-listener
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./htdocs/listenerlist:/app
|
||||
depends_on:
|
||||
- laravel-db
|
||||
networks:
|
||||
- proxy
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
11
htdocs/listenerlis/Dockerfile
Normal file
11
htdocs/listenerlis/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY app.py .
|
||||
|
||||
# Jika ada requirements.txt, tambahkan:
|
||||
# COPY requirements.txt .
|
||||
# RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
Reference in New Issue
Block a user