diff --git a/docker-compose.yaml b/docker-compose.yaml index 6a90e86..756cf62 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,16 +8,40 @@ x-log-config: &log-config volumes: lws: mymonero: + lwsadmin: services: + lwsadmin: + container_name: lwsadmin + image: lalanza808/lwsadmin:latest + restart: unless-stopped + depends_on: + - monero-lws + environment: + LWS_URL: http://monero-lws:8080 + LWS_ADMIN_URL: http://monero-lws:8081 + QUART_ENV: production + HOST: 0.0.0.0 + DEBUG: 0 + SERVER_NAME: ${SERVER_NAME:-127.0.0.1:5000} + SECRET_KEY: ${SECRET_KEY:-thisisasecret} + volumes: + - lwsadmin:/srv/lwsadmin/data + user: "1000:1000" + command: + ./.venv/bin/poetry run start + ports: + - 127.0.0.1:5000:5000 + <<: *log-config mymonero-web: container_name: mymonero-web - image: lalanza808/mymonero-web + image: lalanza808/mymonero-web-js:latest + restart: unless-stopped environment: MYMONERO_WEB_NETTYPE: 0 - MYMONERO_WEB_SERVER_URL: http://localhost:8080 + MYMONERO_WEB_SERVER_URL: http://localhost:8080/ MYMONERO_WEB_APP_NAME: LZAXMR ports: - - 127.0.0.1:8000:80 + - 127.0.0.1:9110:80 volumes: - mymonero:/app <<: *log-config diff --git a/lwsadmin/Dockerfile b/lwsadmin/Dockerfile index 4ed87b0..885e8a2 100644 --- a/lwsadmin/Dockerfile +++ b/lwsadmin/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu:22.04 -RUN apt-get update +RUN apt-get update -y RUN apt-get install -y python3 python3-venv WORKDIR /srv/lwsadmin RUN adduser \ diff --git a/lwsadmin/pyproject.toml b/lwsadmin/pyproject.toml index 94aacc4..558d14e 100644 --- a/lwsadmin/pyproject.toml +++ b/lwsadmin/pyproject.toml @@ -22,4 +22,4 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] -start = "lws:create_app().run()" +start = "lws.app:run()"