Have the admin interface listen on localhost
This commit is contained in:
@@ -44,6 +44,10 @@ manager.add_command('db', flask_migrate.MigrateCommand)
|
|||||||
# Connect to the Docker socket
|
# Connect to the Docker socket
|
||||||
dockercli = docker.Client(base_url=app.config['DOCKER_SOCKET'])
|
dockercli = docker.Client(base_url=app.config['DOCKER_SOCKET'])
|
||||||
|
|
||||||
# Finally setup the blueprint
|
# Finally setup the blueprint and redirect /
|
||||||
from freeposte import admin
|
from freeposte import admin
|
||||||
app.register_blueprint(admin.app, url_prefix='/admin')
|
app.register_blueprint(admin.app, url_prefix='/admin')
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def index():
|
||||||
|
return flask.redirect(flask.url_for("admin.index"))
|
||||||
|
|||||||
@@ -74,17 +74,19 @@ services:
|
|||||||
- "$ROOT/filter:/data"
|
- "$ROOT/filter:/data"
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
# build: admin
|
build: admin
|
||||||
image: freeposte/admin:$VERSION
|
image: freeposte/admin:$VERSION
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8000:80"
|
||||||
volumes:
|
volumes:
|
||||||
- "$ROOT/freeposte:/data"
|
- "$ROOT/freeposte:/data"
|
||||||
- "$ROOT/dkim:/dkim"
|
- "$ROOT/dkim:/dkim"
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
|
||||||
webmail:
|
webmail:
|
||||||
build: "$WEBMAIL"
|
# build: "$WEBMAIL"
|
||||||
image: "freeposte/$WEBMAIL:$VERSION"
|
image: "freeposte/$WEBMAIL:$VERSION"
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|||||||
Reference in New Issue
Block a user