Category : digital-ocean

I currently have a deployed application. https://dostoevsky.rest/ It works well with Nginx and Docker. However, I want to get a JSON when I hit the endpoint https://dostoevsky.rest/api/rand with a subdomain. So, I want the subdomain api.dostoevsky.rest to redirect https://dostoevsky.rest/api/rand. I thought I could configure Nginx as a reverse proxy, so I did the following: server ..

Read more

I am trying to deploy my Nest Js app from my docker hub and I am facing some issues. I have tried deploying it to aws beanstalk without success, I also tried on digitalocean apps without success. For beanstalk I tried both using eb cli and Dockerrun.aws.json with this config: { "AWSEBDockerrunVersion": "1", "Image": { ..

Read more

I am trying to add FFmpeg into my docker container with an alpine base image. I am getting this error 2021-10-26 13:45:42] ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers [2021-10-26 13:45:42] built with gcc 9.2.0 (Alpine 9.2.0) [2021-10-26 13:45:42] configuration: –prefix=/usr –enable-avresample –enable-avfilter –enable-gnutls –enable-gpl –enable-libass –enable-libmp3lame –enable-libvorbis –enable-libvpx –enable-libxvid –enable-libx264 –enable-libx265 –enable-libtheora ..

Read more

package main import ( "context" docker "docker.io/go-docker" "docker.io/go-docker/api/types" "encoding/base64" "encoding/json" "fmt" ) var client docker.Client func main() { ctx := context.Background() var token = <digital_ocean_access_token> var creds = types.AuthConfig{ Username: token, Password: token, ServerAddress: "registry.digitalocean.com", } _, err = client.ImagePush(ctx, "registry.digitalocean.com/<registry>/<repo>:<tag>", types.ImagePushOptions{ RegistryAuth: registryAuth(creds), }) fmt.Println("stream :::::::::::::::::::::> ", err) } func registryAuth(creds types.AuthConfig) string { ..

Read more

package main import ( "context" docker "docker.io/go-docker" "docker.io/go-docker/api/types" "encoding/base64" "encoding/json" "fmt" ) var client docker.Client func main() { ctx := context.Background() var token = <digital_ocean_access_token> var creds = types.AuthConfig{ Username: token, Password: token, ServerAddress: "registry.digitalocean.com", } _, err = client.ImagePush(ctx, "registry.digitalocean.com/<registry>/<repo>:<tag>", types.ImagePushOptions{ RegistryAuth: registryAuth(creds), }) fmt.Println("stream :::::::::::::::::::::> ", err) } func registryAuth(creds types.AuthConfig) string { ..

Read more

I’m trying to deploy a Node service with Nginx. Following is my docker-compose.yml: version: ‘3’ services: nodejs: build: context: . dockerfile: Dockerfile image: nodejs container_name: nodejs restart: unless-stopped networks: – app-network webserver: image: nginx:mainline-alpine container_name: webserver restart: unless-stopped ports: – "80:80" volumes: – web-root:/var/www/html – ./nginx-conf:/etc/nginx/conf.d – certbot-etc:/etc/letsencrypt – certbot-var:/var/lib/letsencrypt depends_on: – nodejs networks: – ..

Read more

all. We have a droplet with Ubuntu and a Docker containerized application (apache, mysql and socketio). We are trying to setup HTTPS to the droplet using this instruction: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04 However after installing certbot on the droplet itself and following the instructions on making changes to the virtual hosts files on our Apache container we are ..

Read more

I’m trying to create a docker swarm cluster (1 manager, 2 workers) on a digitalocean droplet. All resources I have come across start with using docker-machine This command or something similar docker-machine create –driver virtualbox manager1 The issue I’m having now is that docker-machine seems to be deprecated now ( https://docs.docker.com/machine/ ) and the alternative ..

Read more

I am trying to run a django-react app in docker containers and trying to deploy it on digital ocean. Here is my docker-compose script version: "3.9" services: web: image: "${WEB_IMAGE}" container_name: website command: gunicorn server.wsgi:application –bind 0.0.0.0:8000 volumes: – static_volume:/usr/src/app/staticfiles – media_volume:/usr/src/app/mediafiles ports: – 8000:8000 env_file: .env nginx: image: "${NGINX_IMAGE}" container_name: nginx volumes: – static_volume:/usr/src/app/staticfiles ..

Read more