Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Feb 10, 2022
1 parent 949d21d commit 7e769f1
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,16 @@ The account configuration happens in the "Connected accounts" user settings sect
#### Background jobs

To be able to periodically check activity in OpenProject (when "notifications for activity in my work packages" is enabled), you need to choose the "Cron" background job method and set a system cron task calling cron.php as explained in the [documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#cron).

```shell
docker login
```

```shell
docker exec integration_openproject_app_1 chown www-data custom_apps/ -R
docker exec --user www-data integration_openproject_app_1 php occ a:e integration_openproject
```

```shell
sudo mkdir -p /var/lib/openproject/{pgdata,assets}
```
71 changes: 71 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
version: '3'

services:
# openproject:
# image: ${OPEN_PROJECT_IMAGE:-openproject/community:12}
# restart: always
# ports:
# - "8000:80"
# environment:
# - SERVER_HOST_NAME=openproject.example.com
# - SECRET_KEY_BASE=secret
# volumes:
# - /var/lib/openproject/pgdata:/var/openproject/pgdata
# - /var/lib/openproject/assets:/var/openproject/assets


db:
image: postgres:alpine
restart: always
ports:
- "2345:5432"
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}

redis:
image: redis:alpine
restart: always
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}

app:
image: nextcloud:apache
restart: always
ports:
- "8080:80"
volumes:
- nextcloud:/var/www/html
- ${OCIS_WEB_CONFIG:-./../integration_openproject}:/var/www/html/custom_apps/integration_openproject
environment:
- POSTGRES_HOST=db
- REDIS_HOST=redis
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
depends_on:
- db
- redis
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}

cron:
image: nextcloud:apache
restart: always
volumes:
- nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}

volumes:
db:
nextcloud:

0 comments on commit 7e769f1

Please sign in to comment.