pg_dump -U [superuser] -Fc [dbname] > db.dump
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
; /opt/janus/etc/janus/janus.plugin.streaming.cfg | |
; [stream-name] | |
; type = rtp|live|ondemand|rtsp | |
; rtp = stream originated by an external tool (e.g., gstreamer or | |
; ffmpeg) and sent to the plugin via RTP | |
; live = local file streamed live to multiple listeners | |
; (multiple listeners = same streaming context) | |
; ondemand = local file streamed on-demand to a single listener | |
; (multiple listeners = different streaming contexts) | |
; rtsp = stream originated by an external RTSP feed (only |
You have to do 2 things in order to allow your container to access your host's postgresql database
- Make your postgresql listen to an external ip address
- Let this client ip (your docker container) access your postgresql database with a given user
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
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
#!/usr/bin/fift -s | |
"TonUtil.fif" include | |
"Asm.fif" include | |
// If you dont know about stack-base languages | |
// Please read something before read comments and trying to understand what is going on here :) | |
5 :$1..n // parse arguments | |
$1 parse-workchain-id =: wc // set workchain id from command line argument | |
$2 parse-int =: subwallet-id // set subwallet id |