GithubHelp home page GithubHelp logo

elpekenin / docker-40dex-web Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.39 MB

this project has been ported to Rust

Home Page: https://github.com/elpekenin/40dex-rs

Dockerfile 5.81% Python 55.34% Shell 0.49% HTML 38.35%

docker-40dex-web's Introduction

Files used to build my website's docker container. Take also a look at bot's repo

By no means a complete tutorial here. If you want to make a copy, you'll need to add a .env file with your own MongoDB instance credentials, and bot token.... and everything should work. Your compose.yml should be similar to:

version: "3.9"
services:
  web:
    build:
      args:
        DB_URI: "${DB_URI}"
      context: "${GH_40DEX}"
    container_name: web
    environment:
      DB_URI: "${DB_URI}"
      RM_PASS: "${RM_PASS}"
      SV_DOMAIN: "${SV_DOMAIN}"
      SV_SCHEME: "${SV_SCHEME}"
      GH_LINK: "${GH_40DEX}"
    ports:
      - 80:5000
    restart: always
    volumes:
      - type: bind
        source: ./web/logs
        target: /app/logs

  bot-web:
    build: "${GH_BOT-WEB}"
    container_name: bot-web
    environment:
      DB_URI: "${DB_URI}"
      #uri takes precedence over parameterized login
      DB_IP: "${DB_IP}"
      DB_USER: "${DB_USER}"
      DB_PASS: "${DB_PASS}"
      DB_AUTH: "${DB_AUTH}"
      BOT_TOKEN: "${BOT_TOKEN}"
      BOT_USERNAME: "elpekenin" #your telegram username here, without @
      RM_PASS: "${RM_PASS}" #password to force re-generation of html
      GH_LINK: "${GH_BOT-WEB}"
    restart: always
    volumes:
      - type: bind
        source: ./bot-web/logs
        target: /app/logs

  mongo:
    image: bitnami/mongodb:latest
    container_name: mongodb
    ports:
      - 27017:27017
    environment:
      MONGODB_ROOT_PASSWORD: "secure-password-here"      
      MONGODB_USERNAME: "${DB_USER}"
      MONGODB_PASSWORD: "${DB_PASS}"
      MONGODB_DATABASE: website
    volumes:
      - ./database/data:/bitnami/mongodb
    restart: always

If you want to make changes (eg use a different database)

  1. Make your own fork
  2. Update your Dockerfile to build from it
  3. Change code as wished

docker-40dex-web's People

Contributors

elpekenin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.