docker cp <file_to_copy> <container_name>:<dir_destination_in_docker>
docker container exec <container_db> psql -U <db_user> <db_name> -f <backup>.sql
version: '3' | |
networks: | |
synapse: | |
driver: bridge | |
services: | |
certbot: | |
image: certbot/certbot | |
command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email -d my-domain.com |
package types | |
import ( | |
"database/sql/driver" | |
"fmt" | |
"strconv" | |
"strings" | |
"time" | |
) |
version: "3" | |
networks: | |
fhir-server: | |
driver: bridge | |
services: | |
fhir: | |
container_name: fhir-server | |
image: hapiproject/hapi:v5.3.0 |
version "3" | |
sites: | |
image: nginx:1.15.8-alpine | |
restart: always | |
working_dir: /usr/share/nginx/html | |
ports: | |
- "2000:80" | |
volumes: | |
- ./proxy.conf:/etc/nginx/conf.d/default.conf |
package main | |
import ( | |
"log" | |
"net/http" | |
"sync" | |
"github.com/garyburd/redigo/redis" | |
"github.com/gorilla/websocket" | |
uuid "github.com/satori/go.uuid" |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" |