docker run -d --name=postgresql -p 5432:5432 -v /var/lib/postgresql/data:/var/lib/postgresql/data \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=postgres \
postgres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ImportantMetadata() { | |
const logo = "/favicon.png" | |
const title = "" | |
const description = "" | |
return ( | |
<> | |
<title>{title}</title> | |
<link rel="icon" href={logo} /> | |
<link rel="shortcut icon" type="image/x-icon" href={logo} /> | |
<link rel="apple-touch-icon" sizes="180x180" href={logo} /> |
Docker container cannot connect to host wsl. I don't know why.
Check your connection from container to host using this code. This will run curl code from container. alternatively you can do 2 test, using --add-host
or not.
this because problem with network wsl to host. Solution is here. Run command
sudo ifconfig eth0 mtu 1350
, or it could be sudo ifconfig eth0 mtu xxxx
.
Solution to make it permanent. add it to /etc/wsl.conf
. detail here
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
db_postgres: | |
container_name: db_postgres_mynykah | |
image: postgres | |
environment: | |
POSTGRES_DB: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="ui-image" :style="getStyle()"> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: { | |
src: { | |
type: String, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] |