Compare commits

...

5 Commits
RC ... main

Author SHA1 Message Date
tms 4f795ee82d Added .dockerignore 2023-09-25 14:11:04 +02:00
tms f07c3417cb Added .gitignore to assets 2023-09-25 14:10:56 +02:00
tms ab3cdbdb3f Default values cleanup 2023-09-25 13:02:12 +02:00
tms fadeac8c99 Changed container workdir 2023-09-25 13:01:31 +02:00
tms 757edfa0dc Added themes and modules directories 2023-09-25 12:57:17 +02:00
6 changed files with 34 additions and 6 deletions

View File

@ -0,0 +1,9 @@
.git
.gitignore
node_modules
npm-debug.log
Dockerfile*
docker-compose*
README.md
LICENSE
.vscode

View File

@ -1,7 +1,7 @@
FROM alpine:3.18
LABEL Maintainer="Jabar Digital Service <digital.service@jabarprov.go.id>" \
Description="Lightweight container with Nginx 1.16 & PHP-FPM 7.4 based on Alpine Linux (forked from trafex/alpine-nginx-php7)."
LABEL Maintainer="TMS <tms@lameops.io>" \
Description="Omeka S docker container with NGINX"
#ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
@ -32,13 +32,16 @@ COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Setup documexnt root
RUN mkdir -p /var/www/html
#RUN mkdir -p /var/www/html/omeka-s
##RUN mkdir -p /var/www/html/omeka-s
# Fetch Omeka-S
WORKDIR /tmp
ADD https://github.com/omeka/omeka-s/releases/download/v4.0.4/omeka-s-4.0.4.zip /tmp
RUN unzip omeka-s-4.0.4.zip -d /var/www/html/ && rm omeka-s-4.0.4.zip
COPY config/database.ini /var/www/html/omeka-s/config/database.ini
##COPY config/database.ini /var/www/html/omeka-s/config/database.ini
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
RUN chown -R nobody.nobody /var/www/html && \
chown -R nobody.nobody /run && \
@ -46,6 +49,9 @@ RUN chown -R nobody.nobody /var/www/html && \
chown -R nobody.nobody /var/log/nginx && \
chown -R nobody.nobody /var/log/php82
# Change to Omeka-s base dir
WORKDIR /var/www/html/omeka-s
# Switch to use a non-root user from here on
USER nobody

View File

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View File

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View File

@ -1,5 +1,5 @@
user = "omeka"
password = "uzu7ZoLaiGhiequi"
dbname = "omeka"
host = "127.0.0.1"
host = "db"
port = "3306"

View File

@ -5,6 +5,7 @@ services:
db:
image: percona
container_name: omeka-percona
restart: always
env_file:
- sample.env
@ -13,11 +14,15 @@ services:
omeka:
image: omeka-docker-dev
container_name: omeka-s
restart: always
ports:
- 127.0.0.1:8080:8080
volumes:
- /home/tadziu/dev/omeka-s-docker/config/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx.conf:/etc/nginx/nginx.conf
- ./config/database.ini:/var/www/html/omeka-s/config/database.ini
- ./assets/modules/:/var/www/html/omeka-s/modules/
- ./assets/themes/:/var/www/html/omeka-s/themes/
#volumes:
# omeka: