-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from micromata/Release-8.1-SNAPSHOT
Release 8.1 snapshot
- Loading branch information
Showing
136 changed files
with
3,564 additions
and
2,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
POSTGRES_USER=projectforge | ||
POSTGRES_PASSWORD=supersecurepassword | ||
POSTGRES_DB=projectforge | ||
DB_HOST=db | ||
DB_PORT=5432 | ||
|
||
APP_PORT=8080 | ||
DOMAIN=mydomain.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
In progress | ||
|
||
Dirctories: | ||
project/ | ||
├── ProjectForge/ # Application | ||
├── ProjectForge/database # Database | ||
├── nginx/ # Nginx configuration | ||
├── docker-compose.yml # Docker Compose setup | ||
└── .env # Evirnoment variables | ||
|
||
|
||
Edit .env, ./nginx/nginx.conf | ||
|
||
Deploy SSL certificates | ||
|
||
For example, use Let’s Encrypt with Certbot to generate SSL certificates and store them in nginx/certs and nginx/keys. | ||
|
||
Start the application with: | ||
docker-compose up -d | ||
|
||
Check running containers: | ||
docker ps | ||
docker-compose logs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,48 @@ | ||
version: "3.7" | ||
version: "3.8" | ||
services: | ||
projectforge-app: | ||
image: micromata/projectforge | ||
image: micromata/projectforge:latest | ||
container_name: projectforge-app | ||
restart: always | ||
ports: | ||
- "127.0.0.1:8080:8080" | ||
volumes: | ||
- ${HOME}/ProjectForge:/ProjectForge | ||
environment: | ||
# DOCKER_OPTS: so don't offer embedded data-base in setup wizard: | ||
# DOCKER_OPTS: so don't offer embedded database in setup wizard: | ||
- DOCKER_OPTS="-Ddocker=stack" | ||
#- DB_HOST=${DB_HOST} | ||
#- DB_PORT=${DB_PORT} | ||
#- POSTGRES_USER=${POSTGRES_USER} | ||
#- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
#- POSTGRES_DB=${POSTGRES_DB} | ||
ports: | ||
#- "127.0.0.1:${APP_PORT}:8080" | ||
- "${APP_PORT}:8080" | ||
#volumes: | ||
# - ${HOME}/ProjectForge:/ProjectForge | ||
depends_on: | ||
- projectforge-db | ||
|
||
projectforge-db: | ||
image: postgres:13.9 | ||
image: postgres:13.18 | ||
container_name: projectforge-db | ||
restart: always | ||
ports: | ||
- "127.0.0.1:5432:5432" | ||
#ports: | ||
# - "127.0.0.1:5432:5432" | ||
volumes: | ||
- ${HOME}/ProjectForgeDB:/var/lib/postgresql/data | ||
- ./ProjectForgeDB:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_PASSWORD=***password*** | ||
- POSTGRES_USER=projectforge | ||
- PGDATA=/var/lib/postgresql/data/pgdata | ||
- POSTGRES_USER=${POSTGRES_USER} | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
- POSTGRES_DB=${POSTGRES_DB} | ||
|
||
nginx: | ||
image: nginx:latest | ||
container_name: nginx | ||
restart: always | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
volumes: | ||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf | ||
- ./nginx/certs:/etc/ssl/certs | ||
- ./nginx/keys:/etc/ssl/private | ||
depends_on: | ||
- projectforge-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
server { | ||
listen 80; | ||
server_name ${DOMAIN}; | ||
return 301 https://$host$request_uri; | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
server_name ${DOMAIN}; | ||
|
||
ssl_certificate /etc/ssl/certs/fullchain.pem; | ||
ssl_certificate_key /etc/ssl/private/privkey.pem; | ||
|
||
location / { | ||
proxy_pass http://app:8000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.