Site refreshed
[EDIT] This was recovered due to a massive db crash and losing a couple of years worth of articles. Dates are mismatching. [EDIT]
Whats up all…. It has been a while.
life happened.
the pandemic happened.
and i moved this site from dreamhost to a docker swarm setup…
while configuring the compose file i decided that i should post it and also to explain that this version of the site was brought up fresh without a mysql backup / restore but rather i used the wordpress export / import tools to move stuff.
here is the docker compose i used :
version: "3"
services:
wordpress:
hostname: wordpress
image: wordpress
container_name: wordpress
deploy:
mode: global
resources:
limits:
cpus: "2"
memory: 512M
reservations:
memory: 256M
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wp_user
WORDPRESS_DB_PASSWORD: wp_pass
WORDPRESS_DB_NAME: wordpress
volumes:
- "/wordpress:/var/www/html"
db:
hostname: mysql
image: mysql
container_name: mysql
deploy:
resources:
limits:
cpus: "2"
memory: 1024M
reservations:
memory: 256M
#ports:
# - 3306:3306
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wp_user
MYSQL_PASSWORD: wp_pass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- "/mysql:/var/lib/mysql"
Leave a Reply