lol backups and old site first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
services:
|
||||
db:
|
||||
image: mariadb:11
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootpassword
|
||||
MYSQL_DATABASE: wordpress
|
||||
MYSQL_USER: wordpress
|
||||
MYSQL_PASSWORD: wordpress
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
- ./mariadb-dump-wordpress-1788466150.dmp:/docker-entrypoint-initdb.d/dump.sql
|
||||
healthcheck:
|
||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
wordpress:
|
||||
image: wordpress:latest
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "8080:80"
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: wordpress
|
||||
WORDPRESS_CONFIG_EXTRA: |
|
||||
define('WP_HOME', 'http://localhost:8080');
|
||||
define('WP_SITEURL', 'http://localhost:8080');
|
||||
volumes:
|
||||
- ./wpfiles:/var/www/html
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user