Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
tms | e332d9e797 | |
tms | 731eae884c | |
tms | c0e6d0848f | |
tms | 5ddc799b3b | |
tms | 1ea0b8f99d | |
tms | ee4d67f2b6 |
|
@ -0,0 +1,9 @@
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
Dockerfile*
|
||||||
|
docker-compose*
|
||||||
|
README.md
|
||||||
|
LICENSE
|
||||||
|
.vscode
|
|
@ -12,7 +12,7 @@ RUN apk --update add ca-certificates
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk --no-cache add php82 php82-fpm php82-opcache php82-openssl php82-curl php82-pdo php82-pdo_mysql php82-session \
|
RUN apk --no-cache add php82 php82-fpm php82-opcache php82-openssl php82-curl php82-pdo php82-pdo_mysql php82-session \
|
||||||
php82-mbstring php82-fileinfo php82-xml nginx supervisor curl unzip
|
php82-mbstring php82-fileinfo php82-xml nginx supervisor curl unzip imagemagick
|
||||||
|
|
||||||
# https://github.com/codecasts/php-alpine/issues/21
|
# https://github.com/codecasts/php-alpine/issues/21
|
||||||
#RUN ln -s /usr/bin/php7 /usr/bin/php
|
#RUN ln -s /usr/bin/php7 /usr/bin/php
|
||||||
|
@ -43,18 +43,23 @@ 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
|
# 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 && \
|
# Create docker user and group of id's 1000
|
||||||
chown -R nobody.nobody /var/lib/nginx && \
|
|
||||||
chown -R nobody.nobody /var/log/nginx && \
|
RUN addgroup -S dockergroup -g 1000 && adduser -S dockeruser -u 1000 -G dockergroup
|
||||||
chown -R nobody.nobody /var/log/php82
|
|
||||||
|
RUN chown -R 1000:1000 /var/www/html && \
|
||||||
|
chown -R 1000:1000 /run && \
|
||||||
|
chown -R 1000:1000 /var/lib/nginx && \
|
||||||
|
chown -R 1000:1000 /var/log/nginx && \
|
||||||
|
chown -R 1000:1000 /var/log/php82
|
||||||
|
|
||||||
# Change to Omeka-s base dir
|
# Change to Omeka-s base dir
|
||||||
|
|
||||||
WORKDIR /var/www/html/omeka-s
|
WORKDIR /var/www/html/omeka-s
|
||||||
|
|
||||||
# Switch to use a non-root user from here on
|
# Switch to use a non-root user from here on
|
||||||
USER nobody
|
USER dockeruser
|
||||||
|
|
||||||
# Add application
|
# Add application
|
||||||
# WORKDIR /var/www/html
|
# WORKDIR /var/www/html
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Ignore everything in this directory
|
||||||
|
*
|
||||||
|
# Except this file
|
||||||
|
!.gitignore
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Ignore everything in this directory
|
||||||
|
*
|
||||||
|
# Except this file
|
||||||
|
!.gitignore
|
|
@ -11,9 +11,11 @@ services:
|
||||||
- sample.env
|
- sample.env
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:3306:3306
|
- 127.0.0.1:3306:3306
|
||||||
|
volumes:
|
||||||
|
- /srv/pv/omeka/db/:/var/lib/mysql/
|
||||||
|
|
||||||
omeka:
|
omeka:
|
||||||
image: omeka-docker-dev
|
image: tms/omekas:josz
|
||||||
container_name: omeka-s
|
container_name: omeka-s
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
@ -21,8 +23,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./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
|
- ./config/database.ini:/var/www/html/omeka-s/config/database.ini
|
||||||
- ./assets/modules/:/var/www/html/omeka-s/modules/
|
- /srv/pv/omeka/assets/modules/:/var/www/html/omeka-s/modules/
|
||||||
- ./assets/themes/:/var/www/html/omeka-s/themes/
|
- /srv/pv/omeka/assets/themes/:/var/www/html/omeka-s/themes/
|
||||||
|
|
||||||
#volumes:
|
#volumes:
|
||||||
# omeka:
|
# omeka:
|
||||||
|
|
Loading…
Reference in New Issue