Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ services:
MYW_TASK_QUEUES: ${MYW_TASK_QUEUES:-}
# START CUSTOM SECTION
# END CUSTOM SECTION
volumes:
- shared-data:/shared-data

iqgeo:
build:
Expand Down Expand Up @@ -76,6 +78,8 @@ services:
# END CUSTOM SECTION
ports:
- ${APPSERVER_PORT:-80}:8080
volumes:
- shared-data:/shared-data

keycloak:
container_name: keycloak_${PROJ_PREFIX:-myproj}
Expand Down Expand Up @@ -112,3 +116,7 @@ volumes:
name: ${PROJ_PREFIX:-myproj}_pgdata-example15
# START CUSTOM SECTION
# END CUSTOM SECTION
shared-data:
name: ${PROJ_PREFIX:-myproj}_shared-data
# START CUSTOM SECTION
# END CUSTOM SECTION
5 changes: 5 additions & 0 deletions deployment/dockerfile.appserver
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ COPY --chown=www-data:www-data --from=iqgeo_builder ${MODULES}/comms/ ${MODULES}
# Copy in generated bundles
COPY --chown=www-data:www-data --from=iqgeo_builder ${WEBAPPS}/myworldapp/public ${WEBAPPS}/myworldapp/public/

# Give www-data user ownership of the shared directory
ENV SHARED_DIRECTORY=/shared-data
RUN mkdir -p ${SHARED_DIRECTORY}
RUN chown -R www-data:www-data ${SHARED_DIRECTORY}


USER www-data

Expand Down
5 changes: 5 additions & 0 deletions deployment/dockerfile.tools
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ COPY --chown=www-data:www-data --from=iqgeo_builder ${WEBAPPS}/myworldapp/dist $
RUN chown -R www-data:www-data entrypoint.d && \
chown www-data:www-data entrypoint.d.sh

# Give www-data user ownership of the shared directory
ENV SHARED_DIRECTORY=/shared-data
RUN mkdir -p ${SHARED_DIRECTORY}
RUN chown -R www-data:www-data ${SHARED_DIRECTORY}

USER www-data

# add additional entrypoint scripts (build db, ...)
Expand Down