feat: update templates (#19)
This commit is contained in:
parent
6c88325e2d
commit
94858ec2e1
@ -1,5 +1,8 @@
|
||||
FROM monica:fpm-alpine
|
||||
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
RUN set -ex;\
|
||||
\
|
||||
{ \
|
||||
|
||||
@ -3,6 +3,7 @@ version: "3.4"
|
||||
services:
|
||||
app:
|
||||
build: ./app
|
||||
image: monica-app
|
||||
depends_on:
|
||||
- db
|
||||
env_file: .env
|
||||
@ -15,6 +16,7 @@ services:
|
||||
|
||||
web:
|
||||
build: ./web
|
||||
image: monica-web
|
||||
restart: always
|
||||
ports:
|
||||
- 8881:80
|
||||
|
||||
4
.examples/nginx-proxy-self-signed-ssl/app/Dockerfile
Normal file
4
.examples/nginx-proxy-self-signed-ssl/app/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
FROM monica:fpm
|
||||
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
@ -22,7 +22,8 @@ version: "3.4"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: monica:fpm
|
||||
build: ./app
|
||||
image: monica-app
|
||||
env_file: .env
|
||||
volumes:
|
||||
- data:/var/www/html/storage
|
||||
@ -47,7 +48,8 @@ services:
|
||||
restart: always
|
||||
|
||||
cron:
|
||||
image: monica:fpm
|
||||
build: ./app
|
||||
image: monica-app
|
||||
env_file: .env
|
||||
restart: always
|
||||
volumes:
|
||||
@ -58,7 +60,8 @@ services:
|
||||
- redis
|
||||
|
||||
queue:
|
||||
image: monica:fpm
|
||||
build: ./app
|
||||
image: monica-app
|
||||
env_file: .env
|
||||
restart: always
|
||||
volumes:
|
||||
@ -70,6 +73,7 @@ services:
|
||||
|
||||
web:
|
||||
build: ./web
|
||||
image: monica-web
|
||||
restart: always
|
||||
environment:
|
||||
- VIRTUAL_HOST=monica.local
|
||||
|
||||
4
.examples/nginx-proxy/app/Dockerfile
Normal file
4
.examples/nginx-proxy/app/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
FROM monica:fpm
|
||||
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
@ -21,7 +21,8 @@ version: "3.4"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: monica:fpm
|
||||
build: ./app
|
||||
image: monica-app
|
||||
env_file: .env
|
||||
volumes:
|
||||
- data:/var/www/html/storage
|
||||
@ -46,7 +47,8 @@ services:
|
||||
restart: always
|
||||
|
||||
cron:
|
||||
image: monica:fpm
|
||||
build: ./app
|
||||
image: monica-app
|
||||
env_file: .env
|
||||
restart: always
|
||||
volumes:
|
||||
@ -57,7 +59,8 @@ services:
|
||||
- redis
|
||||
|
||||
queue:
|
||||
image: monica:fpm
|
||||
build: ./app
|
||||
image: monica-app
|
||||
env_file: .env
|
||||
restart: always
|
||||
volumes:
|
||||
@ -69,6 +72,7 @@ services:
|
||||
|
||||
web:
|
||||
build: ./web
|
||||
image: monica-web
|
||||
restart: always
|
||||
environment:
|
||||
- VIRTUAL_HOST=
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
FROM monica:apache
|
||||
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
# supervisord dependencies
|
||||
RUN set -ex; \
|
||||
\
|
||||
@ -10,4 +13,5 @@ RUN set -ex; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY supervisord.conf /etc/supervisord.conf
|
||||
|
||||
CMD ["supervisord", "-c", "/etc/supervisord.conf"]
|
||||
|
||||
@ -3,6 +3,7 @@ version: "3.4"
|
||||
services:
|
||||
app:
|
||||
build: ./app
|
||||
image: monica-app
|
||||
depends_on:
|
||||
- db
|
||||
env_file: .env
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
FROM monica:fpm-alpine
|
||||
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
# supervisord dependencies
|
||||
RUN set -ex; \
|
||||
\
|
||||
@ -8,4 +11,5 @@ RUN set -ex; \
|
||||
;
|
||||
|
||||
COPY supervisord.conf /etc/supervisord.conf
|
||||
|
||||
CMD ["supervisord", "-c", "/etc/supervisord.conf"]
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
FROM monica:fpm
|
||||
|
||||
# Use the default production configuration
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
# supervisord dependencies
|
||||
RUN set -ex; \
|
||||
\
|
||||
@ -10,4 +13,5 @@ RUN set -ex; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY supervisord.conf /etc/supervisord.conf
|
||||
|
||||
CMD ["supervisord", "-c", "/etc/supervisord.conf"]
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
RUN set -ex; \
|
||||
\
|
||||
a2enmod headers rewrite remoteip; \
|
||||
{ \
|
||||
echo RemoteIPHeader X-Real-IP; \
|
||||
echo RemoteIPTrustedProxy 10.0.0.0/8; \
|
||||
echo RemoteIPTrustedProxy 172.16.0.0/12; \
|
||||
echo RemoteIPTrustedProxy 192.168.0.0/16; \
|
||||
} > $APACHE_CONFDIR/conf-available/remoteip.conf; \
|
||||
a2enconf remoteip
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
|
||||
RUN set -ex; \
|
||||
\
|
||||
sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/sites-available/*.conf; \
|
||||
sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/sites-available/*.conf; \
|
||||
sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/apache2.conf $APACHE_CONFDIR/conf-available/*.conf
|
||||
|
||||
@ -4,11 +4,7 @@
|
||||
\
|
||||
GPGKEY='BDAB0D0D36A00466A2964E85DE15667131EA6018'; \
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keys.gnupg.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver pgp.mit.edu --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keyserver.pgp.com --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --verify monica-${MONICA_VERSION}.tar.bz2.asc monica-${MONICA_VERSION}.tar.bz2; \
|
||||
\
|
||||
tar -xf monica-${MONICA_VERSION}.tar.bz2 -C /var/www/html --strip-components=1; \
|
||||
|
||||
@ -2,7 +2,7 @@ LABEL org.opencontainers.image.authors="Alexis Saettler <alexis@saettler.org>" \
|
||||
org.opencontainers.image.title="MonicaHQ, the Personal Relationship Manager" \
|
||||
org.opencontainers.image.description="This is MonicaHQ, your personal memory! MonicaHQ is like a CRM but for the friends, family, and acquaintances around you." \
|
||||
org.opencontainers.image.url="https://monicahq.com" \
|
||||
org.opencontainers.image.revision="%%COMMIT%%" \
|
||||
org.opencontainers.image.revision="%%COMMIT%%" \
|
||||
org.opencontainers.image.source="https://github.com/monicahq/docker" \
|
||||
org.opencontainers.image.vendor="Monica" \
|
||||
org.opencontainers.image.version="%%VERSION%%"
|
||||
|
||||
@ -73,12 +73,7 @@ RUN set -ex; \
|
||||
| xargs -rt apt-mark manual; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
\
|
||||
if command -v a2enmod; then \
|
||||
a2enmod rewrite; \
|
||||
fi
|
||||
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
%%EXTRA_INSTALL%%
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ LABEL org.opencontainers.image.authors="Alexis Saettler <alexis@saettler.org>" \
|
||||
org.opencontainers.image.title="MonicaHQ, the Personal Relationship Manager" \
|
||||
org.opencontainers.image.description="This is MonicaHQ, your personal memory! MonicaHQ is like a CRM but for the friends, family, and acquaintances around you." \
|
||||
org.opencontainers.image.url="https://monicahq.com" \
|
||||
org.opencontainers.image.revision="3a1243d3195668171b8d096c0f903c08513336d9" \
|
||||
org.opencontainers.image.revision="3a1243d3195668171b8d096c0f903c08513336d9" \
|
||||
org.opencontainers.image.source="https://github.com/monicahq/docker" \
|
||||
org.opencontainers.image.vendor="Monica" \
|
||||
org.opencontainers.image.version="v2.17.0"
|
||||
@ -83,12 +83,7 @@ RUN set -ex; \
|
||||
| xargs -rt apt-mark manual; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
\
|
||||
if command -v a2enmod; then \
|
||||
a2enmod rewrite; \
|
||||
fi
|
||||
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set crontab for schedules
|
||||
RUN set -ex; \
|
||||
@ -120,11 +115,22 @@ RUN set -ex; \
|
||||
\
|
||||
echo 'memory_limit=512M' > $PHP_INI_DIR/conf.d/memory-limit.ini
|
||||
|
||||
RUN set -ex; \
|
||||
\
|
||||
a2enmod headers rewrite remoteip; \
|
||||
{ \
|
||||
echo RemoteIPHeader X-Real-IP; \
|
||||
echo RemoteIPTrustedProxy 10.0.0.0/8; \
|
||||
echo RemoteIPTrustedProxy 172.16.0.0/12; \
|
||||
echo RemoteIPTrustedProxy 192.168.0.0/16; \
|
||||
} > $APACHE_CONFDIR/conf-available/remoteip.conf; \
|
||||
a2enconf remoteip
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
|
||||
RUN set -ex; \
|
||||
\
|
||||
sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/sites-available/*.conf; \
|
||||
sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/sites-available/*.conf; \
|
||||
sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/apache2.conf $APACHE_CONFDIR/conf-available/*.conf
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
@ -144,11 +150,7 @@ RUN set -ex; \
|
||||
\
|
||||
GPGKEY='BDAB0D0D36A00466A2964E85DE15667131EA6018'; \
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keys.gnupg.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver pgp.mit.edu --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keyserver.pgp.com --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --verify monica-${MONICA_VERSION}.tar.bz2.asc monica-${MONICA_VERSION}.tar.bz2; \
|
||||
\
|
||||
tar -xf monica-${MONICA_VERSION}.tar.bz2 -C /var/www/html --strip-components=1; \
|
||||
|
||||
@ -5,7 +5,7 @@ LABEL org.opencontainers.image.authors="Alexis Saettler <alexis@saettler.org>" \
|
||||
org.opencontainers.image.title="MonicaHQ, the Personal Relationship Manager" \
|
||||
org.opencontainers.image.description="This is MonicaHQ, your personal memory! MonicaHQ is like a CRM but for the friends, family, and acquaintances around you." \
|
||||
org.opencontainers.image.url="https://monicahq.com" \
|
||||
org.opencontainers.image.revision="3a1243d3195668171b8d096c0f903c08513336d9" \
|
||||
org.opencontainers.image.revision="3a1243d3195668171b8d096c0f903c08513336d9" \
|
||||
org.opencontainers.image.source="https://github.com/monicahq/docker" \
|
||||
org.opencontainers.image.vendor="Monica" \
|
||||
org.opencontainers.image.version="v2.17.0"
|
||||
@ -127,11 +127,7 @@ RUN set -ex; \
|
||||
\
|
||||
GPGKEY='BDAB0D0D36A00466A2964E85DE15667131EA6018'; \
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keys.gnupg.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver pgp.mit.edu --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keyserver.pgp.com --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --verify monica-${MONICA_VERSION}.tar.bz2.asc monica-${MONICA_VERSION}.tar.bz2; \
|
||||
\
|
||||
tar -xf monica-${MONICA_VERSION}.tar.bz2 -C /var/www/html --strip-components=1; \
|
||||
|
||||
@ -5,7 +5,7 @@ LABEL org.opencontainers.image.authors="Alexis Saettler <alexis@saettler.org>" \
|
||||
org.opencontainers.image.title="MonicaHQ, the Personal Relationship Manager" \
|
||||
org.opencontainers.image.description="This is MonicaHQ, your personal memory! MonicaHQ is like a CRM but for the friends, family, and acquaintances around you." \
|
||||
org.opencontainers.image.url="https://monicahq.com" \
|
||||
org.opencontainers.image.revision="3a1243d3195668171b8d096c0f903c08513336d9" \
|
||||
org.opencontainers.image.revision="3a1243d3195668171b8d096c0f903c08513336d9" \
|
||||
org.opencontainers.image.source="https://github.com/monicahq/docker" \
|
||||
org.opencontainers.image.vendor="Monica" \
|
||||
org.opencontainers.image.version="v2.17.0"
|
||||
@ -83,12 +83,7 @@ RUN set -ex; \
|
||||
| xargs -rt apt-mark manual; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
\
|
||||
if command -v a2enmod; then \
|
||||
a2enmod rewrite; \
|
||||
fi
|
||||
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set crontab for schedules
|
||||
RUN set -ex; \
|
||||
@ -140,11 +135,7 @@ RUN set -ex; \
|
||||
\
|
||||
GPGKEY='BDAB0D0D36A00466A2964E85DE15667131EA6018'; \
|
||||
export GNUPGHOME="$(mktemp -d)"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keys.gnupg.net --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver pgp.mit.edu --recv-keys "$GPGKEY" \
|
||||
|| gpg --batch --keyserver keyserver.pgp.com --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY"; \
|
||||
gpg --batch --verify monica-${MONICA_VERSION}.tar.bz2.asc monica-${MONICA_VERSION}.tar.bz2; \
|
||||
\
|
||||
tar -xf monica-${MONICA_VERSION}.tar.bz2 -C /var/www/html --strip-components=1; \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user