-
-
Notifications
You must be signed in to change notification settings - Fork 2
Add PostgreSQL client and server to Dockerfile #33
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
base: main
Are you sure you want to change the base?
Changes from all commits
9068e47
174b179
8470f1f
d12c0bd
176e23f
f692262
cf7979e
faf5177
bcac0d4
6862fbc
07acee3
dd316c0
4dd5a90
528c7dc
30be3db
3b48472
33973c6
ff2ef3a
63e4149
be08ec1
f452152
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| PROFILE=mysql |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <VirtualHost *:80> | ||
| ServerAdmin webmaster@localhost | ||
| DocumentRoot /var/www/html | ||
|
|
||
| <Directory /var/www/html> | ||
| Options -Indexes +FollowSymLinks | ||
| AllowOverride All | ||
| Require all granted | ||
| </Directory> | ||
|
|
||
| ErrorLog ${APACHE_LOG_DIR}/error.log | ||
| CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
| </VirtualHost> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,8 @@ | ||
| networks: | ||
| internal: | ||
| name: testcom-internal | ||
| driver: bridge | ||
|
|
||
| services: | ||
| app: | ||
| build: | ||
|
|
@@ -6,12 +11,21 @@ services: | |
| volumes: | ||
| - ..:/workspaces/testcom:cached | ||
| - ./xdebug.ini:/usr/local/etc/php/conf.d/99-xdebug.ini | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Binding xdebug.ini while also rewriting 99-xdebug.ini in post-create.sh can be confusing and redundant. Because Suggested implementation: To fully align with the suggestion, verify that |
||
| - joomla-html:/var/www/html | ||
| ports: | ||
| - "80:80" | ||
| - "443:443" | ||
| - "3306:3306" | ||
| - "6080:6080" | ||
| command: sleep infinity | ||
| networks: | ||
| - internal | ||
| depends_on: | ||
| mysql: | ||
| condition: service_healthy | ||
| required: false | ||
| db_pgsql: | ||
| condition: service_healthy | ||
| required: false | ||
|
|
||
| mysql: | ||
| image: mysql:8.0 | ||
|
|
@@ -23,11 +37,44 @@ services: | |
| MYSQL_USER: joomla_ut | ||
| MYSQL_PASSWORD: joomla_ut | ||
| volumes: | ||
| - "mysql-data:/var/lib/mysql" | ||
| - mysql-data:/var/lib/mysql | ||
| networks: | ||
| - internal | ||
| healthcheck: | ||
| test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "joomla_ut", "-pjoomla_ut"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 20 | ||
| start_period: 15s | ||
|
|
||
| db_pgsql: | ||
| image: postgres:16 | ||
| restart: unless-stopped | ||
| environment: | ||
| POSTGRES_DB: test_joomla | ||
| POSTGRES_USER: joomla_ut | ||
| POSTGRES_PASSWORD: joomla_ut | ||
| volumes: | ||
| - db_pgsql_data:/var/lib/postgresql/data | ||
| networks: | ||
| - internal | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "pg_isready -U joomla_ut -d test_joomla"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 20 | ||
| start_period: 10s | ||
|
|
||
| mailpit: | ||
| image: axllent/mailpit:latest | ||
| restart: unless-stopped | ||
| ports: | ||
| - "1025:1025" | ||
| - "8025:8025" | ||
| networks: | ||
| - internal | ||
|
|
||
| volumes: | ||
| mysql-data: | ||
| db_pgsql_data: | ||
| joomla-html: | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): Avoid configuring Xdebug twice to prevent duplicate zend_extension warnings.
pecl install xdebug+docker-php-ext-enable xdebugalready creates an ini withzend_extension=xdebug, andpost-create.shadds the same line to99-xdebug.ini, so Xdebug will be loaded twice. To avoid warnings and version‑dependent issues, either dropzend_extensionfrom99-xdebug.iniand rely on the auto-generated ini, or skipdocker-php-ext-enableand manage Xdebug only via your custom ini.