Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnymilton committed May 5, 2024
1 parent be394c5 commit 16d2cd3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
php:
build:
dockerfile: docker/php/Dockerfile
dockerfile: docker/dev/php/Dockerfile
volumes:
- ./backend/:/application
working_dir: /application
Expand All @@ -20,7 +20,7 @@ services:
ports:
- "8000:80"
volumes:
- ./docker/nginx/flex-server.conf:/etc/nginx/conf.d/default.conf
- ./docker/dev/nginx/flex-server.conf:/etc/nginx/conf.d/default.conf
- ./backend/public:/application/public
image: nginx:1.25.5-alpine
depends_on:
Expand Down
2 changes: 2 additions & 0 deletions docker/app/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
composer dump-env prod
bin/console cache:clear
bin/console doctrine:database:create --if-not-exists -n
bin/console doctrine:migrations:migrate -n
bin/console messenger:consume async --time-limit=3600
php-fpm
nginx
bash
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/php/Dockerfile → docker/dev/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM php:8.2-fpm-alpine

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt update -y && apt install zip libzip-dev libpq-dev libicu-dev -y && \
RUN apk add zip libzip-dev libpq-dev icu-dev $PHPIZE_DEPS && \
docker-php-ext-install zip pdo pdo_pgsql intl && \
pecl install redis && docker-php-ext-enable redis

Expand Down

0 comments on commit 16d2cd3

Please sign in to comment.