Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize dockerfile #54

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ services:
ports:
- "${APP_PORT:-8000}:80"
environment:
- APP_KEY= # Generate a key using `openssl rand -base64 32`
- APP_URL="http://localhost:8000"
- ASSET_URL="http://localhost:8000"
- DB_CONNECTION=mysql
- DB_HOST=investbrain-mysql
- DB_PORT=3306
- DB_DATABASE=investbrain
- DB_USERNAME=investbrain
- DB_PASSWORD=investbrain
- SESSION_DRIVER=redis
- QUEUE_CONNECTION=redis
- CACHE_STORE=redis
- REDIS_HOST=investbrain-redis
APP_KEY: "" # Generate a key using `openssl rand -base64 32`
APP_URL: "http://localhost:8000"
ASSET_URL: "http://localhost:8000"
DB_CONNECTION: mysql
DB_HOST: investbrain-mysql
DB_PORT: 3306
DB_DATABASE: ${DB_DATABASE:-investbrain}
DB_USERNAME: ${DB_USERNAME:-investbrain}
DB_PASSWORD: ${DB_PASSWORD:-investbrain}
SESSION_DRIVER: redis
QUEUE_CONNECTION: redis
CACHE_STORE: redis
REDIS_HOST: investbrain-redis
volumes:
- ./storage:/var/www/app/storage:delegated
depends_on:
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ RUN apt-get update && apt-get install -y \
zlib1g-dev \
libzip-dev \
libicu-dev \
libpq-dev \
supervisor \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) \
gd pgsql zip pdo_mysql mysqli intl \
gd zip pdo_mysql mysqli intl \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down