Skip to content

Commit 49bcb7d

Browse files
committed
Updated Composefile to use FrankenPHP-based image
1 parent 9367338 commit 49bcb7d

File tree

9 files changed

+10
-206
lines changed

9 files changed

+10
-206
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: docker-compose up -d
3939

4040
- name: Initialise Litus
41-
run: docker-compose run --rm php-cli init
41+
run: docker-compose run --rm litus init
4242

4343
- name: Test response
4444
run: curl -fsSL -I --retry 5 --retry-delay 0 --retry-max-time 30 http://localhost:8080

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ ENV APPLICATION_ENV=${APPLICATION_ENV}
5252
ARG COMMIT_SHA
5353
ENV COMMIT_SHA=${COMMIT_SHA}
5454

55-
RUN mv "${PHP_INI_DIR}/php.ini-production" "${PHP_INI_DIR}/php.ini"
56-
57-
COPY docker/frankenphp/litus.ini /usr/local/etc/php/conf.d/
58-
5955
RUN install-php-extensions \
6056
imagick \
6157
intl \
@@ -78,6 +74,8 @@ RUN curl -fsSL -o /tmp/fop-2.7-bin.tar.gz https://downloads.apache.org/xmlgraphi
7874
tar --strip-components=1 -C /opt -xzf /tmp/fop-2.7-bin.tar.gz fop-2.7/fop && \
7975
rm /tmp/fop-2.7-bin.tar.gz
8076

77+
RUN mv "${PHP_INI_DIR}/php.ini-production" "${PHP_INI_DIR}/php.ini"
78+
8179
RUN mkdir -p /app/public/_assetic && \
8280
mkdir -p /app/public/_common/profile && \
8381
mkdir -p /app/public/_gallery/albums && \
@@ -88,6 +86,9 @@ RUN mkdir -p /app/public/_assetic && \
8886

8987
COPY --from=composer /app/ /app/
9088

89+
COPY docker/frankenphp/litus.ini /usr/local/etc/php/conf.d/
90+
COPY docker/frankenphp/entrypoint.sh /
91+
9192
VOLUME ["/app/public/_assetic"]
9293
VOLUME ["/app/public/_common/profile"]
9394
VOLUME ["/app/public/_gallery/albums"]
@@ -96,3 +97,5 @@ VOLUME ["/app/public/_publications/html"]
9697
VOLUME ["/app/public/_br/img"]
9798

9899
VOLUME ["/data"]
100+
101+
ENTRYPOINT ["/entrypoint.sh"]

docker-compose.yml

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -10,60 +10,10 @@ volumes:
1010
services:
1111
litus:
1212
image: litusproject/litus:latest
13-
container_name: litus-litus-1
1413
build:
1514
context: .
16-
depends_on:
17-
- php-fpm
1815
ports:
19-
- 127.0.0.1:8080:8080
20-
volumes:
21-
- assetic:/app/public/_assetic
22-
restart: unless-stopped
23-
24-
pgweb:
25-
image: sosedoff/pgweb:latest
26-
container_name: litus-pgweb-1
27-
depends_on:
28-
- postgres
29-
environment:
30-
- DATABASE_URL=postgres://litus:huQeyU8te3aXusaz@postgres:5432/litus?sslmode=disable
31-
ports:
32-
- 127.0.0.1:8081:8081
33-
restart: unless-stopped
34-
35-
php-cli:
36-
image: litusproject/litus:php-cli-latest
37-
build:
38-
context: .
39-
target: php-cli
40-
depends_on:
41-
- postgres
42-
- redis
43-
environment:
44-
LITUS_DATABASE_HOST: postgres
45-
LITUS_DATABASE_USER: litus
46-
LITUS_DATABASE_PASSWORD: huQeyU8te3aXusaz
47-
LITUS_DATABASE_DBNAME: litus
48-
49-
LITUS_REDIS_HOST: redis
50-
51-
php-fpm:
52-
image: litusproject/litus:php-fpm-latest
53-
container_name: litus-php-fpm-1
54-
build:
55-
context: .
56-
target: php-fpm
57-
depends_on:
58-
- postgres
59-
- redis
60-
environment:
61-
LITUS_DATABASE_HOST: postgres
62-
LITUS_DATABASE_USER: litus
63-
LITUS_DATABASE_PASSWORD: huQeyU8te3aXusaz
64-
LITUS_DATABASE_DBNAME: litus
65-
66-
LITUS_REDIS_HOST: redis
16+
- 127.0.0.1:8080:80
6717
volumes:
6818
- assetic:/app/public/_assetic
6919
restart: unless-stopped

docker/caddy/Caddyfile

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ case "$1" in
1919
;;
2020

2121
"")
22-
exit 0
22+
docker-php-entrypoint --config /etc/Caddyfile
2323
;;
2424

2525
*)

docker/load_db_docker.sh

Lines changed: 0 additions & 74 deletions
This file was deleted.

docker/php-fpm/opcache.ini

Lines changed: 0 additions & 36 deletions
This file was deleted.

docker/run_dev_docker.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)