Skip to content
29 changes: 24 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,26 @@ services:
WP_HOME: http://localhost:8080
WP_SITEURL: http://localhost:8080
WORDPRESS_DEBUG: 1
PS_QDRANT_URL: http://qdrant:6333
OPENAI_API_KEY: ${OPENAI_API_KEY}
WORDPRESS_CONFIG_EXTRA: |
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('SCRIPT_DEBUG', true);
define('WP_ENVIRONMENT_TYPE', 'development');
@ini_set('memory_limit', '512M');
@ini_set('upload_max_filesize', '128M');
@ini_set('post_max_size', '128M');
volumes:
- ./wp-content:/var/www/html/wp-content
- wordpress_data:/var/www/html
depends_on:
db:
condition: service_healthy
qdrant:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
test: [ "CMD-SHELL", "wget -qO- http://localhost >/dev/null 2>&1 || exit 1" ]
interval: 30s
timeout: 10s
retries: 3
Expand All @@ -34,7 +42,7 @@ services:
image: mysql:8.0
container_name: postsecret_db
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
Expand All @@ -43,14 +51,14 @@ services:
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "wordpress", "-pwordpress"]
test: [ "CMD-SHELL", "mysqladmin ping -h localhost -uwordpress -pwordpress --silent" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s

phpmyadmin:
image: phpmyadmin:5.2
image: phpmyadmin:latest
container_name: postsecret_phpmyadmin
restart: unless-stopped
ports:
Expand All @@ -61,8 +69,19 @@ services:
PMA_PASSWORD: wordpress
UPLOAD_LIMIT: 100M
depends_on:
- db
db:
condition: service_healthy

qdrant:
image: qdrant/qdrant:latest
container_name: postsecret_qdrant
restart: unless-stopped
ports:
- "6333:6333"
volumes:
- qdrant_storage:/qdrant/storage

volumes:
db_data:
wordpress_data:
qdrant_storage:
Loading