Compare commits

...

6 Commits

Author SHA1 Message Date
LRVT
0952e9de87
Update README.md 2023-07-18 11:31:47 +02:00
LRVT
7b5a9d9b51
Update docker-compose.yml
remove requirement for traefik reverse proxy
2023-07-18 11:30:39 +02:00
LRVT
4f7368ba50
Rename .env_example to .env
rename to fix CI
2023-07-18 11:16:51 +02:00
LRVT
46e26c186f
Update README.md 2023-07-18 10:35:55 +02:00
LRVT
a8646e4ac0
Update README.md 2023-07-18 10:00:01 +02:00
LRVT
024d9aa000
Rename .env to .env_example 2023-07-18 09:56:45 +02:00
2 changed files with 15 additions and 11 deletions

View File

@ -4,9 +4,10 @@
# Notes
1. Download the `docker-compose.yml` and `.env` file from this repository.
2. Adjust both files to your needs. Especially change the default secrets!
3. Proceed by executing the below commands.
1. Download the `docker-compose.yml` file from this repository.
2. Create a firezone `.env` file via the command `docker run --rm firezone/firezone bin/gen-env > .env`
3. Adjust `docker-compose.yml` and created `.env` to your needs. Especially change the environment variables `DEFAULT_ADMIN_EMAIL`, `DEFAULT_ADMIN_PASSWORD` and `EXTERNAL_URL` to secure values!
4. Proceed by executing the below commands.
````
docker compose run --rm firezone bin/migrate
@ -14,4 +15,4 @@ docker compose run --rm firezone bin/create-or-reset-admin
docker compose up -d
````
Note: This compose setup requires an already existing dockerized Traefik reverse proxy.
Note: It is recommended to run the Firezone web panel behind a reverse proxy (e.g. Traefik) if you want to expose it. Alternatively, keep it running on http://127.0.0.1:13000.

View File

@ -15,6 +15,9 @@ services:
container_name: firezone-web
ports:
- 51820:51820/udp
- 127.0.0.1:13000:13000/tcp
expose:
- 13000
env_file:
# This should contain a list of env vars for configuring Firezone.
# See https://docs.firezone.dev/reference/env-vars for more info.
@ -24,13 +27,13 @@ services:
# /var/firezone/private_key exists when Firezone starts, it is
# used as the WireGuard private. Otherwise, one is generated.
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/firezone:/var/firezone
labels:
- traefik.enable=true
- traefik.docker.network=dev
- traefik.http.routers.firezone_https.rule=Host(`firezone.example.com`)
- traefik.http.routers.firezone_https.tls=true
- traefik.http.services.firezone.loadbalancer.server.port=13000
#- traefik.http.routers.firezone.middlewares=local-ipwhitelist@file
#labels:
# - traefik.enable=true
# - traefik.docker.network=dev
# - traefik.http.routers.firezone_https.rule=Host(`firezone.example.com`)
# - traefik.http.routers.firezone_https.tls=true
# - traefik.http.services.firezone.loadbalancer.server.port=13000
# #- traefik.http.routers.firezone.middlewares=local-ipwhitelist@file
cap_add:
# Needed for WireGuard and firewall support.
- NET_ADMIN