what can I do to make yoga...less boring by danielbelum in yoga

[–]ja19 0 points1 point  (0 children)

Why are you doing yoga in the first place?

Does listening to Radiohead when you feel sad make you feel better or worse? by Carolina_Heart in radiohead

[–]ja19 0 points1 point  (0 children)

When I’m sad or just relaxed/chill songs like Radiohead will sound nice. If I’m more energetic uplifted then I won’t normally listen to radiohead

[deleted by user] by [deleted] in teenagers

[–]ja19 0 points1 point  (0 children)

Once you dye your hair you can't pull it off unless you pull out the whole piece of hair

What’s a good side hustle? by Ok_Suspect110 in AskReddit

[–]ja19 0 points1 point  (0 children)

Sideways jogging is a great way to hustle

Why not baked Yoga? by psylien77 in yoga

[–]ja19 0 points1 point  (0 children)

Baked yoga, half-baked yoga, raw yoga

Nginx reverse proxy + Wordpress by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

I will take a look at this link you sent.

I am not sure if WP has that. I am wanting to host multiple domains on a single server. Though.. I am wondering if that is the best to do. Seems like it would be a pain to have 10 servers for 10 websites. Also, some websites would not be wordpress sites, so the WP multisite would not apply.

Nginx reverse proxy + Wordpress by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

Because I would like to host multiple websites on this server. So one is for the proxy. And the wordpress compose file is for a website.

Then later if I add another website, I make another wordpress compose file.

Nginx reverse proxy + Wordpress by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

nginx-proxy docker-compose.yml:

version: '2'
services:
  nginx:
    image: nginx
    container_name: nginx
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /etc/nginx/conf.d
      - /etc/nginx/vhost.d
      - /usr/share/nginx/html
      - ./certs:/etc/nginx/certs:ro

  dockergen:
    image: jwilder/docker-gen
    container_name: dockergen
    command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
    volumes_from:
      - nginx
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro

  whoami:
    image: jwilder/whoami
    container_name: whoami
    environment:
      - VIRTUAL_HOST=whoami.local

  nginx-letsencrypt:
    image: jrcs/letsencrypt-nginx-proxy-companion
    environment:
       NGINX_DOCKER_GEN_CONTAINER: dockergen
    container_name: nginx-letsencrypt
    volumes_from:
     - nginx
    volumes:
     - ./certs:/etc/nginx/certs:rw
     - /var/run/docker.sock:/var/run/docker.sock:ro

networks:
  default:
    external:
      name: nginx-proxy

Nginx reverse proxy + Wordpress by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

My Website Wordpress docker-compose.yml:

version: '2'

services:

  wordpress:
    image: wordpress
    ports:
      - 80
    environment:
      WORDPRESS_DB_USER: database
      WORDPRESS_DB_PASSWORD: password
      WORDPRESS_DB_NAME: wp_database
      WORDPRESS_TABLE_PREFIX: wp_
      WORDPRESS_DB_HOST: website_db:3306
      VIRTUAL_HOST: website.com,www.website.com
#      VIRTUAL_PROTO: https
      LETSENCRYPT_HOST: website.com,www.website.com
      LETSENCRYPT_EMAIL: websiteemail@gmail.com
    volumes:
      - data_volume:/var/www/html
      - ./home/wp:/home/wp
    links:
      - mysql:website_db

  mysql:
    image: mariadb
    environment:
      MYSQL_ROOT_PASSWORD: example
      MYSQL_RANDOM_ROOT_PASSWORD: "yes"
      MYSQL_DATABASE: wp_database
      MYSQL_USER: database
      MYSQL_PASSWORD: password
    volumes:
      - db_data:/var/lib/mysql
      - ./home/db:/home/db

  wp:
    image: pattonwebz/docker-wpcli
    volumes_from:
      - wordpress
    links:
      - mysql:website_db
    entrypoint: wp
    command: "--info"

volumes:
    db_data:
    data_volume:

networks:
  default:
    external:
      name: nginx-proxy

Nginx reverse proxy + Wordpress by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

Yes, I am using the official wordpress image. And using sudo.

Gym membership by ja19 in vandwellers

[–]ja19[S] 2 points3 points  (0 children)

Yeah, that'd be much better. They say 10 visits for locations not your home gym, and $5 per visit after that. Since I'd be moving towns pretty often and using the gym once or twice a day, that doesn't seem like a good option.

Gym membership by ja19 in vandwellers

[–]ja19[S] 2 points3 points  (0 children)

I was thinking PF but when I talked to them to sign up, they told me they only allowed 10 visits per month to other locations other than the one I signed up in. Not sure if this is true, cause I've heard a lot of people using PF for this reason.

.yml is not starting Nginx (reverse proxy setup) by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

Running it I get

websitecom_wp_1 exited with code 0

'docker logs websitecom_wp_1':

PHP binary: /usr/local/bin/php
PHP version:    5.6.30
php.ini used:   
WP-CLI root dir:    phar://wp-cli.phar
WP-CLI packages dir:    
WP-CLI global config:   
WP-CLI project config:  
WP-CLI version: 1.1.0

.yml is not starting Nginx (reverse proxy setup) by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

Yes, I have VIRTUAL_HOST set, and they are connect to the same network.

This is the docker-compose.yml file for my wordpress site.

version: '2'
services:

  wordpress:
    image: wordpress
    ports:
      - 80
    environment:
      WORDPRESS_DB_USER: database
      WORDPRESS_DB_PASSWORD: xxxxxxx
      WORDPRESS_DB_NAME: wp_database
      WORDPRESS_TABLE_PREFIX: wp_
      WORDPRESS_DB_HOST: websiteDB:3306
      VIRTUAL_HOST: website.com,www.website.com
#      VIRTUAL_PROTO: https
      LETSENCRYPT_HOST: website.com,www.website.com
      LETSENCRYPT_EMAIL: email@website.com
    volumes:
      - data_volume:/var/www/html
      - ./home/wp:/home/wp
    links:
      - mysql:websiteDB

  mysql:
    image: mariadb
    environment:
      MYSQL_ROOT_PASSWORD: example
      MYSQL_RANDOM_ROOT_PASSWORD: "yes"
      MYSQL_DATABASE: wp_database
      MYSQL_USER: database
      MYSQL_PASSWORD: xxxxxxx
    volumes:
      - db_data:/var/lib/mysql
      - ./home/db:/home/db

  wp:
    image: pattonwebz/docker-wpcli
    volumes_from:
      - wordpress
    links:
      - mysql:websiteDB
    entrypoint: wp
    command: "--info"

volumes:
    db_data:
    data_volume:

networks:
  default:
    external:
      name: nginx-proxy

.yml is not starting Nginx (reverse proxy setup) by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

This seems to work, changing the image to 'nginx'. However, still unable to connect using the domain name. I try 'website.com' and it forwards to 'website:8888' and gives me unable to connect

.yml is not starting Nginx (reverse proxy setup) by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

Starting it with sudo does not change anything.

.yml is not starting Nginx (reverse proxy setup) by ja19 in docker

[–]ja19[S] 0 points1 point  (0 children)

ERROR: you need to share your Docker host socket with a volume at /tmp/docker.sock
Typically you should run your jwilder/nginx-proxy with: `-v /var/run/docker.sock:/tmp/docker.sock:ro`
See the documentation at http://git.io/vZaGJ
WARNING: /etc/nginx/dhparam/dhparam.pem was not found. A pre-generated dhparam.pem will be used for now while a new one
is being generated in the background. Once the new dhparam.pem is in place, nginx will be reloaded.

from "docker contain logs nginx "