Jump to content

Normynator

Developer
  • Posts

    292
  • Joined

  • Days Won

    16

Posts posted by Normynator

  1. Maybe it would be good to not run it as root even inside the container.

    Also maybe add something like this:

     
    RUN git clone --shallow-since 11.03.2018 https://github.com/HerculesWS/Hercules.git . \
    && git checkout d89690fbdbaa5dc78f98d96ee91403e329c12af1

    Obviously for rathena.
     

    And how about seperating into different containers?

    #PROD
    version: '3'
    
    services:
      core:
        build: ./server
        image: core:latest
        volumes:
          - sql_scripts:/herc_server/sql-files
    
      database:
        image: mysql
        restart: always
        volumes:
          - sql_scripts:/docker-entrypoint-initdb.d
          - server_db:/var/lib/mysql
        environment:
          MYSQL_DATABASE: ragnarok
          MYSQL_USER: ragnarok
          MYSQL_PASSWORD: raganarok
          MYSQL_ROOT_PASSWORD: secret
        depends_on:
          - core
    
      map:
        image: core
        restart: always
        command: ./wait-for-it.sh database:3306 -- "./map-server"
        volumes:
          - ./server/config/comm/main/import/map-server.conf:/herc_server/conf/import/map-server.conf:ro 
        depends_on: 
          - core
          - database
        ports:
          - 5121:5121
    
      login:
        image: core
        restart: always
        command: ./wait-for-it.sh database:3306 -- "./login-server"
        volumes:
          - ./server/config/comm/main/import/login-server.conf:/herc_server/conf/import/login-server.conf:ro
        depends_on: 
          - core
          - database
        ports:
          - 6900:6900
    
      char:
        image: core
        restart: always
        command: ./wait-for-it.sh database:3306 -- "./char-server"
        volumes:
          - ./server/config/comm/main/import/char-server.conf:/herc_server/conf/import/char-server.conf:ro
        depends_on: 
          - core
          - database 
        ports:
          - 6121:6121
      
      flarum:
        image: mondedie/docker-flarum:0.1.0-beta.7.1-stable
        container_name: flarum
        ports:
          - 80:8888     
        environment:
          - DEBUG=true
          - FORUM_URL=http://s8nozieb.me
          - DB_PASS=secret2
        volumes:
          - ./forum/assests:/forum/app/assets
          - ./forum/extensions:/flarum/app/extensions
        depends_on:
          - mariadb
    
      mariadb:
        image: mariadb:10.1
        container_name: mariadb
        environment:
          - MYSQL_ROOT_PASSWORD=secret2
          - MYSQL_DATABASE=flarum
          - MYSQL_USER=flarum
          - MYSQL_PASSWORD=secret2
        volumes:
          - forum_db:/var/lib/mysql
    
    
    volumes:
            sql_scripts:
            server_db:
            forum_db:

     

    I once made this for hercules, would be nice if we could have something similar for rAthena.
    (https://github.com/Normynator/Ragnarok/tree/master/docker)

    • Upvote 1
  2. 2 hours ago, Haikenz said:

    @Normynator run emulator...

    
    [Debug]: Calling discord_connect_timer
    [Status]: Connecting to 127.0.0.1:1337
    [Error]: make_connection: connect failed (socket #8, error 111: Connection refused)!

     

    Make sure the bridge is running on 127.0.0.1 at port 1337 before starting your emulator.

  3. 10 minutes ago, Litro Endemic said:

    installation guide is still hard to understand, can you please make diff from fresh git?

    and to start bot what server need? python or nodejs? i have some experience in making discord bot, but it still confuse me

    thanks rep up for you

    I will do that tomorrow ?

    • Love 1
×
×
  • Create New...