Skip to content

Commit

Permalink
0.0.6 [WIP] some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LReg committed Oct 10, 2024
1 parent 4adf84e commit 8215f58
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docker/composeFiles/app.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ services:
MONGO_INITDB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MONGO_INITDB_DATABASE: ${DB_USERNAME}
volumes:
- ./docker/volumes/database:/data/db
- ./docker/scripts/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ../volumes/database:/data/db
- ../scripts/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro

frontend:
container_name: ${APP_NAME}-frontend
Expand Down
8 changes: 4 additions & 4 deletions docker/composeFiles/auth.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: authelia/authelia
container_name: ${APP_NAME}-authelia
volumes:
- ./docker/volumes/authelia/config:/config
- ../volumes/authelia/config:/config
networks:
- TraefikNetwork
labels:
Expand Down Expand Up @@ -41,7 +41,7 @@ services:
- 'traefik.http.routers.${APP_NAME}-router-lldap.tls.certresolver=${TRAEFIK_CERT_RESOLVER}'
- 'traefik.http.services.${APP_NAME}-service.loadbalancer.server.port=17170'
volumes:
- "./docker/volumes/lldap:/data"
- "../volumes/lldap:/data"
environment:
- "LLDAP_JWT_SECRET=${LLDAP_JWT_SECRET}"
- "LLDAP_KEY_SEED=${LLDAP_KEY_SEED}"
Expand All @@ -51,7 +51,7 @@ services:
image: postgres
container_name: ${APP_NAME}-authelia-postgres
volumes:
- ./docker/volumes/authelia/postgres:/var/lib/mysql
- ../volumes/authelia/postgres:/var/lib/mysql
networks:
- TraefikNetwork
expose:
Expand All @@ -67,7 +67,7 @@ services:
image: redis:alpine
container_name: ${APP_NAME}-redis
volumes:
- ./docker/volumes/redis:/data
- ../volumes/redis:/data
networks:
- TraefikNetwork
expose:
Expand Down
4 changes: 2 additions & 2 deletions docker/composeFiles/local.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ services:
MONGO_INITDB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MONGO_INITDB_DATABASE: public
volumes:
- ./docker/volumes/database:/data/db
- ./docker/scripts/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ../volumes/database:/data/db
- ../scripts/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro

backend:
pid: host
Expand Down
2 changes: 1 addition & 1 deletion docker/composeFiles/traefik.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
volumes:
#That Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/volumes/traefik/acme-volume:/acme
- ../volumes/traefik/acme-volume:/acme
networks:
- TraefikNetwork

Expand Down
16 changes: 16 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,34 @@ <h2>Rerun setup script to write template files from Authelia and DB</h2>
</code>
<h2>Start your services</h2>
There is a script for easier starting and stopping of the services.
<h3>Traefik</h3>
<code>
./docker-cli.sh traefik up
</code>
<h4>Error</h4>
You might get an error Message because the network Traefik wants to use does not exist like: "network YourTraefikNetwork declared as external, but could not be found"
you can react with creating the network:
<code>
docker network create YourTraefikNetwork
</code>
<h3>Authelia and related stuff</h3>
<code>
./docker-cli.sh auth up
</code>
<h4>After the first startup</h4>
<p>On the first startup the lldap user that authelia will want to use will not exist. This will lead to the authelia container to be <strong>unhealthy and restarting</strong>.<br/>
So you will need to login to lldap on you <strong>lldap.youdomain.com</strong> (LLDAP_DOMAIN) and login with <strong>admin:password</strong> and then <strong>create the user you defined in your .env File.</strong><br/>
The user should have the <strong>group ldap_password_manager</strong>. And of course change the admin password. For futher information look into the
<a href="https://github.com/lldap/lldap">lldap Repo</a>, very good project.</p>
<h3>Database</h3>
<code>
./docker-cli.sh db up
</code>
<h3>Backend</h3>
<code>
./docker-cli.sh backend up
</code>
<h3>Frontend</h3>
<code>
./docker-cli.sh frontend up
</code>
Expand Down

0 comments on commit 8215f58

Please sign in to comment.