logo
down
shadow

Docker-compose setting problem about Domjudge server


Docker-compose setting problem about Domjudge server

By : Evgeniy
Date : January 11 2021, 03:32 PM
hope this fix your issue Unfortunately what you want to do is not really possible because of how the application is built: containers need to wait for each other and some of them need manual actions.
However, this is a sequence of actions that works and will bring all containers up and running.
code :
version: '3'

services:
        dj-mariadb:
                image: mariadb
                environment:
                        - MYSQL_ROOT_PASSWORD=rootpw
                        - MYSQL_DATABASE=domjudge
                        - MYSQL_USER=domjudge
                        - MYSQL_PASSWORD=djpw
                command:
                        --max-connections=1000

        dj-domserver:
                image: domjudge/domserver:latest
                volumes:
                        - /sys/fs/cgroup:/sys/fs/cgroup:ro
                environment:
                        - CONTAINER_TIMEZONE=Asia/Taipei
                        - MYSQL_ROOT_PASSWORD=rootpw
                        - MYSQL_DATABASE=domjudge
                        - MYSQL_USER=domjudge
                        - MYSQL_PASSWORD=djpw
                ports:
                        - 9090:80
                links:
                        - dj-mariadb:mariadb
        dj-judgehost:
                image: domjudge/judgehost:latest
                privileged: true
                hostname: judgedaemon-0
                volumes:
                        - /sys/fs/cgroup:/sys/fs/cgroup:ro
                environment:
                        - DAEMON_ID=0
                        - JUDGEDAEMON_PASSWORD=domjudge
                links:
                        - dj-domserver:domserver
        dj-judgehost_1:
                image: domjudge/judgehost:latest
                privileged: true
                hostname: judgedaemon-1
                volumes:
                        - /sys/fs/cgroup:/sys/fs/cgroup:ro
                environment:
                        - DAEMON_ID=1
                        - JUDGEDAEMON_PASSWORD=domjudge
                links:
                        - dj-domserver:domserver
        dj-judgehost_2:
                image: domjudge/judgehost:latest
                privileged: true
                hostname: judgedaemon-2
                volumes:
                        - /sys/fs/cgroup:/sys/fs/cgroup:ro
                environment:
                        - DAEMON_ID=2
                        - JUDGEDAEMON_PASSWORD=domjudge
                links:
                        - dj-domserver:domserver
        phpmyadmin:
                image: phpmyadmin/phpmyadmin
                container_name: myadmin
                ports: 
                        - 8888:80
                environment: 
                        - PMA_ARBITRARY=1
                        - PMA_HOST=dj-mariadb
                links:
                        - dj-mariadb:db
docker-compose up -d dj-mariadb
docker-compose up -d dj-domserver
docker-compose logs dj-domserver
docker-compose up -d
docker-compose ps
          Name                         Command               State               Ports             
---------------------------------------------------------------------------------------------------
domjudge_dj-domserver_1     /scripts/start.sh                Up      0.0.0.0:9090->80/tcp          
domjudge_dj-judgehost_1     /scripts/start.sh                Up                                    
domjudge_dj-judgehost_1_1   /scripts/start.sh                Up                                    
domjudge_dj-judgehost_2_1   /scripts/start.sh                Up                                    
domjudge_dj-mariadb_1       docker-entrypoint.sh --max ...   Up      3306/tcp                      
myadmin                     /run.sh supervisord -n -j  ...   Up      0.0.0.0:8888->80/tcp, 9000/tcp


Share : facebook icon twitter icon
How can I use docker-compose locally after setting up a docker-machine host?

How can I use docker-compose locally after setting up a docker-machine host?


By : SonnyStar
Date : March 29 2020, 07:55 AM
around this issue When you use docker-machine it will set your DOCKER_HOST environment variable, that's where your docker client will point to and run all the commands. You either need to do eval $(docker-machine env -u) to unset the environment variables back to your local, or just export DOCKER_HOST to point back to your local before you run docker-compose.
How to override embedded DNS server for Docker in /etc/resolv.conf from a docker-compose file

How to override embedded DNS server for Docker in /etc/resolv.conf from a docker-compose file


By : Israel Rios
Date : March 29 2020, 07:55 AM
Any of those help You won't see custom DNS servers in /etc/resolv.conf but Docker's resolver will forward DNS requests to them.
User Defined Networks and DNS
Building multi-container docker image on server with docker-compose

Building multi-container docker image on server with docker-compose


By : Hosmelq
Date : March 29 2020, 07:55 AM
wish of those help The thing is that you shouldn't build a docker image for production.
The usual setup is that you build an image that can run on multiple environments. On UAT you test this image and when it's ok, you make the production environment to stop current containers and then you start new ones based on the new image.
Cypress could not verify that this server is running when using Docker and Docker Compose

Cypress could not verify that this server is running when using Docker and Docker Compose


By : user3363721
Date : March 29 2020, 07:55 AM
this one helps. localhost in Docker is always "this container". Use the names of the service blocks in the docker-compose.yml as hostnames, i.e., http://web:8080
(Note that I copied David Maze's answer from the comments)
Docker Compose (docker-compose) couldn't connect to docker daemon on Windows Server 2016 TP5

Docker Compose (docker-compose) couldn't connect to docker daemon on Windows Server 2016 TP5


By : Sunita Programmer
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I am trying to get docker-compose to work on Windows Server 2016 TP5. I have installed Docker Desktop for Windows (not Docker Toolbox) as a service, which works perfectly. I have downloaded the latest docker-compose for windows from https://dl.bintray.com/docker-compose/master/ and put it in the same path as Docker (after unblocking the downloaded file, and renaming it to docker-compose.exe. , You might want to try to set your DOCKER_HOST:
Related Posts Related Posts :
  • Docker add all folder files to the existed folder without replacement
  • unhealthy docker container not restarted by docker native health check
  • How to backup docker with multiple services?
  • Connect to container from another container or host using the same name
  • How to Configure NGINX to Serve ASGI from UNIX Socket?
  • How to access the application(exposed on port 7600) from docker container inside a container?
  • Docker compose with name other than dockerfile
  • precompiled golang on alpine
  • How to assign port dynamically using docker-compose?
  • How do I change owner permissions of a directory inside my elasticsearch docker container?
  • Is it possible to add an installer, run it and delete it during one build step in Docker?
  • apache/nifi docker: how to save current container
  • Docker-volume binded to an other directory but files are cloned into /var/lib/docker
  • How can I delete docker images older than X and not in use
  • Select ENV/ARG in Dockerfile depending on build ARG
  • Nginx reverse proxy subdirectory vai proxy_pass for Bookstack
  • Docker Build Hangs On ---> Running
  • Development with docker - how to fetch data from a different localhost port
  • Container won't connect to redis container
  • Azure pipelines: Docker buildAndPush failing
  • How to create websocket connection between two Docker containers
  • Dummy downsize after Docker build
  • Nuget command fails in docker file but not when run manually
  • MQTT port connection refused when deploying Docker container to Cloud Foundry
  • How to run dockered ASP.net core app generated by Visual Studio 2019 on Linux? Problem with SSL configuration
  • How can I combine images into one container in Docker (as IIB is dependent on MQ)?
  • Warning when trying run tensorflow with Docker on Windows
  • How to name a volume, created by Dockerfile
  • Jenkins + Artifactory in Red Hat
  • In fabric first-network example, hot to fix the error: "transport: error while dialing: dial tcp: lookup peer0.org1
  • Running vespa in separate container for configserver and services
  • GITLAB-CI - Join network created by docker-compose
  • Change Docker image file system
  • Where are the directory created from dockerfile and how do I access it?
  • gitlab ci failing with custom runner
  • is docker daemon running
  • service 'image' must be a mapping not a string
  • How to run multiple commands in one Github Actions Docker
  • Am I running on container or not?
  • Docker-compose multiple ports expose
  • Unable to stop, kill or remove Docker container
  • Install Blue Prism Application Server inside Docker container
  • Monitoring and restarting docker containers
  • Microk8s cannot pull from private registry
  • Go binary not found when using Dockerfile
  • How to kill a docker container when it reaches set of memory usage or CPU limit
  • Elixir requests slow in docker with phoenix code reloader on
  • Side Effects When Using fluentd logging driver with Docker
  • Run Apache Ignite in Docker container as non-root user
  • Error occurring during the signature verification of apt-get update
  • Error: cannot find automatically a registry where to push images - Kamel Kubernetes
  • trigger event when a pod is created or deleted in kubernetes to write or delete its IP in some database
  • tar (child): prometheus-2.8.1.linux-amd64.tar.gz: Cannot open: No such file or directory
  • Mount Current Directory in Containrer using docker file
  • How to build a new app from scratch inside a docker container?
  • My kafka docker container cannot connect to my zookeeper docker container
  • Database synchronization time in cassandra
  • How to restore original client IP from Cloudflare with NGINX ingress controller
  • Nginx caching DNS look ups and ignoring my resolver settings
  • Permissions on Volume files created by Docker
  • shadow
    Privacy Policy - Terms - Contact Us © festivalmusicasacra.org