Compare commits

..

10 commits

Author SHA1 Message Date
Tyr Heimdal
b337634924
Merge pull request #90 from gambtho/docker-compose
Some checks failed
Docker Image CI / build (push) Has been cancelled
Remove outdated docker-compose dependency
2025-01-31 17:43:02 +01:00
Tyr Heimdal
a59480e3f8
Merge pull request #100 from ScotDex/patch-1
Add LE_EMAIL env var to README.md
2025-01-31 17:27:32 +01:00
Tyr Heimdal
8e8c007eda
Merge pull request #101 from ScotDex/patch-2
Update README.md
2025-01-31 17:19:35 +01:00
Tyr Heimdal
ecabe46c78
Merge pull request #102 from ScotDex/patch-3
add docker log rotation - thanks @ScotDex 
ref: https://docs.docker.com/engine/logging/configure/
2025-01-31 17:18:04 +01:00
ScottishDex
e5e92871bd
Update docker-compose.yml
Added a logging driver for troubleshooting
2024-12-08 01:04:59 +00:00
ScottishDex
aebf0294e9
Update README.md 2024-12-08 00:56:29 +00:00
ScottishDex
b741f1fc21
Update README.md 2024-12-08 00:31:17 +00:00
gambtho
ff098d2526
Remove outdated docker-compose dependency 2024-05-02 10:24:23 -04:00
Sam
d12dfc615f
Update php.ini
Removes Debugging
2024-04-26 22:56:55 +12:00
Sam
21f977c9bd
Update environment.ini
Sets Debug level to 0
2024-04-26 22:56:28 +12:00
4 changed files with 10 additions and 9 deletions

View file

@ -13,7 +13,6 @@ A fork of techfreak's [Pathfinder-container](https://gitlab.com/techfreak/pathfi
**Prerequisites**: **Prerequisites**:
* [docker](https://docs.docker.com/) * [docker](https://docs.docker.com/)
* [docker-compose](https://docs.docker.com/)
> **Note**: The Docker-compose file uses Compose v3.8, so requires Docker Engine 19.03.0+ > **Note**: The Docker-compose file uses Compose v3.8, so requires Docker Engine 19.03.0+
@ -72,6 +71,7 @@ A fork of techfreak's [Pathfinder-container](https://gitlab.com/techfreak/pathfi
SMTP_PASS="" SMTP_PASS=""
SMTP_FROM="" SMTP_FROM=""
SMTP_ERROR="" SMTP_ERROR=""
LE_EMAIL="your-email@example.com" #Add your email address for notifications if the SSL cert renewal fails.
> The `PROJECT_ROOT` key is the *absolute* path to the project directory, ie if you have clone it to /app/pathfinder-containers, this is the value you should enter. If you're unsure of the absolute path, you can use the command `pwd` to get the full absolute path of the current directory. > The `PROJECT_ROOT` key is the *absolute* path to the project directory, ie if you have clone it to /app/pathfinder-containers, this is the value you should enter. If you're unsure of the absolute path, you can use the command `pwd` to get the full absolute path of the current directory.
1. **Edit the *config/pathfinder/pathfinder.ini*** to your liking 1. **Edit the *config/pathfinder/pathfinder.ini*** to your liking
@ -92,7 +92,7 @@ A fork of techfreak's [Pathfinder-container](https://gitlab.com/techfreak/pathfi
1. **Build & Run it** 1. **Build & Run it**
```shell ```shell
docker network create web && docker-compose up -d docker network create web && docker compose up -d
``` ```
1. **Open the http://< your-domain >/setup page.** 1. **Open the http://< your-domain >/setup page.**
@ -103,15 +103,15 @@ A fork of techfreak's [Pathfinder-container](https://gitlab.com/techfreak/pathfi
1. **Go back to your console and insert the eve universe dump with this command:** 1. **Go back to your console and insert the eve universe dump with this command:**
```shell ```shell
docker-compose exec pfdb /bin/sh -c "unzip -p eve_universe.sql.zip | mysql -u root -p\$MYSQL_ROOT_PASSWORD eve_universe"; docker compose exec pfdb /bin/sh -c "unzip -p eve_universe.sql.zip | mysql -u root -p\$MYSQL_ROOT_PASSWORD eve_universe";
1. **When everthing works, configure Traefik correctly for production** 1. **When everything works, configure Traefik correctly for production**
* Remove the staging CA server line from `docker-compose.yml`from the `command` block of the traefik service definition. * Remove the staging CA server line from `docker-compose.yml`from the `command` block of the traefik service definition.
* Delete the `./letsencrypt/acme.json` configuration file so Let's Encrypt will get a new certificate.</br></br> * Delete the `./letsencrypt/acme.json` configuration file so Let's Encrypt will get a new certificate.</br></br>
* If you are not the root user on your host you may need to edit file permissions. Docker-engine creates the `letsencrypt` director as root user, which means that you would need to prefix `sudo` on any future docker commands (`sudo docker-compose up` etc). To avoid doing this you can take ownership of the letsencrypt directory by running `sudo chown -R $USER ./letsencrypt`. * If you are not the root user on your host you may need to edit file permissions. Docker-engine creates the `letsencrypt` director as root user, which means that you would need to prefix `sudo` on any future docker commands (`sudo docker compose up` etc). To avoid doing this you can take ownership of the letsencrypt directory by running `sudo chown -R $USER ./letsencrypt`.
> Hint: If you need to make changes, perform your edits first, then do `docker-compose down` to bring down the project, and then `docker-compose up --build -d` to rebuild the containers and run them again. > Hint: If you need to make changes, perform your edits first, then do `docker compose down` to bring down the project, and then `docker compose up --build -d` to rebuild the containers and run them again.
</br> </br>

View file

@ -28,7 +28,9 @@ services:
aliases: aliases:
- "$REDIS_HOST" - "$REDIS_HOST"
logging: logging:
driver: none driver: json-file
options: "5m"
max-file: "3"
restart: always restart: always
pf-socket: pf-socket:
image: ghcr.io/goryn-clade/pf-websocket:latest image: ghcr.io/goryn-clade/pf-websocket:latest

View file

@ -13,7 +13,7 @@ BASE =
; deployment URL (e.g. https://www.pathfinder-w.space) ; deployment URL (e.g. https://www.pathfinder-w.space)
URL = {{@SCHEME}}://$DOMAIN URL = {{@SCHEME}}://$DOMAIN
; level of debug/error stack trace ; level of debug/error stack trace
DEBUG = 3 DEBUG = 0
; Pathfinder database ; Pathfinder database
DB_PF_DNS = mysql:host=${MYSQL_HOST};port=${MYSQL_PORT};dbname= DB_PF_DNS = mysql:host=${MYSQL_HOST};port=${MYSQL_PORT};dbname=
DB_PF_NAME = $MYSQL_PF_DB_NAME DB_PF_NAME = $MYSQL_PF_DB_NAME

View file

@ -10,7 +10,6 @@ fastcgi.logging=0
request_terminate_timeout = 300 request_terminate_timeout = 300
session.save_handler = redis session.save_handler = redis
session.save_path = "tcp://${REDIS_HOST}:${REDIS_PORT}" session.save_path = "tcp://${REDIS_HOST}:${REDIS_PORT}"
zend_extension=/usr/lib/php7/modules/xdebug.so
[Date] [Date]
date.timezone="UTC" date.timezone="UTC"