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: '2' | |
services: | |
postgresql: | |
image: docker.io/bitnami/postgresql:11 | |
environment: | |
# ALLOW_EMPTY_PASSWORD is recommended only for development. | |
- ALLOW_EMPTY_PASSWORD=yes | |
- POSTGRESQL_USERNAME=bn_keycloak | |
- POSTGRESQL_DATABASE=bitnami_keycloak | |
volumes: |
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
#/bin/bash | |
echo "Create docker network nginx-proxy" | |
docker network create nginx-proxy | |
echo "Create conf.d folder in {$PWD}" | |
mkdir -p $PWD/conf.d |
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
#!/bin/bash | |
## mysqldump | |
docker exec -i CONTAINER_NAME /usr/bin/mysqldump -u DB_USER -p'DB_PASS' DB_NAME > dump.sql | |
## Restore | |
cat dump.sql | docker exec -i CONTAINER_NAME /usr/bin/mysql -u DB_USER -p'DB_PASS' DB_NAME |
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
import { JSX as LocalJSX } from "@stencil/core"; | |
import { DetailedHTMLProps, HTMLAttributes } from 'react'; | |
type StencilProps<T> = { | |
[P in keyof T]?: Omit<T[P], 'ref'>; | |
}; | |
type ReactProps<T> = { | |
[P in keyof T]?: DetailedHTMLProps<HTMLAttributes<T[P]>, T[P]>; | |
}; |
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
# Double-container Dockerfile for separated build process. | |
# If you're just copy-pasting this, don't forget a .dockerignore! | |
# We're starting with the same base image, but we're declaring | |
# that this block outputs an image called DEPS that we | |
# won't be deploying - it just installs our Yarn deps | |
FROM node:16.13.0-alpine AS deps | |
# If you need libc for any of your deps, uncomment this line: | |
# RUN apk add --no-cache libc6-compat |