Compare commits
No commits in common. "673773b6bf9f542a73d7e5d6132f460c8e129ef3" and "da05bcf92bfa66d24a2401e0a5a8914c828cfb1b" have entirely different histories.
673773b6bf
...
da05bcf92b
4 changed files with 10 additions and 15 deletions
|
@ -154,14 +154,7 @@ WORKDIR /var/www/dotclear/app
|
||||||
|
|
||||||
# Add container starting script
|
# Add container starting script
|
||||||
ADD docker-entrypoint.sh /entrypoint.sh
|
ADD docker-entrypoint.sh /entrypoint.sh
|
||||||
USER www
|
|
||||||
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
|
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
|
||||||
USER root
|
|
||||||
|
|
||||||
# FPM must start first in daemon mode
|
|
||||||
# Then nginx in no daemon mode
|
|
||||||
SHELL ["/bin/sh", "-c"]
|
|
||||||
CMD php-fpm84 -D && nginx
|
|
||||||
|
|
||||||
# Docker container healthcheck
|
# Docker container healthcheck
|
||||||
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:80/fpm-ping || exit 1
|
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:80/fpm-ping || exit 1
|
|
@ -95,4 +95,8 @@ echo >&2 "│ ◦ PHP $(php84 -r "echo PHP_VERSION;")"
|
||||||
echo >&2 "│ ◦ Dotclear ${VERSION_INSTALLED}"
|
echo >&2 "│ ◦ Dotclear ${VERSION_INSTALLED}"
|
||||||
echo >&2 '└──'
|
echo >&2 '└──'
|
||||||
|
|
||||||
|
# Start web server
|
||||||
|
php-fpm84 -D # FPM must start first in daemon mode
|
||||||
|
nginx # Then nginx in no daemon mode
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
|
@ -6,7 +6,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable_db:/var/lib/mysql
|
- dcstable/db:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: dotclear_root
|
MYSQL_ROOT_PASSWORD: dotclear_root
|
||||||
MYSQL_DATABASE: dotclear_db
|
MYSQL_DATABASE: dotclear_db
|
||||||
|
@ -24,7 +24,7 @@ services:
|
||||||
container_name: dcstableapp
|
container_name: dcstableapp
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable_app:/var/www/dotclear
|
- dcstable/app:/var/www/dotclear
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -40,5 +40,4 @@ services:
|
||||||
DC_ADMINMAILFROM: contact@exemple.com
|
DC_ADMINMAILFROM: contact@exemple.com
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
dcstable_db:
|
dcstable:
|
||||||
dcstable_app:
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
POSTGRES_DB: dcstable_db
|
POSTGRES_DB: dcstable_db
|
||||||
PGDATA: /var/lib/postgresql/data/pgdata
|
PGDATA: /var/lib/postgresql/data/pgdata
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable_db:/var/lib/postgresql/data
|
- dcstable:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
|
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
|
||||||
interval: 1s
|
interval: 1s
|
||||||
|
@ -24,7 +24,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable_app:/var/www/dotclear
|
- dcstable/app:/var/www/dotclear
|
||||||
depends_on:
|
depends_on:
|
||||||
dcstabledb:
|
dcstabledb:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
@ -38,5 +38,4 @@ services:
|
||||||
DC_ADMINMAILFROM: contact@exemple.com
|
DC_ADMINMAILFROM: contact@exemple.com
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
dcstable_db:
|
dcstable:
|
||||||
dcstable_app:
|
|
Loading…
Reference in a new issue