{"id":22687910,"url":"https://github.com/dotskinmaksim/advertisements-service","last_synced_at":"2026-04-11T14:35:58.775Z","repository":{"id":261695751,"uuid":"885071206","full_name":"DotskinMaksim/advertisements-service","owner":"DotskinMaksim","description":"Platform for viewing, managing, and adding ads","archived":false,"fork":false,"pushed_at":"2024-12-15T23:02:44.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T16:11:56.130Z","etag":null,"topics":["composer","javascript","mariadb","open-source","php","rest-api","vuejs","web-development"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DotskinMaksim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-07T22:43:35.000Z","updated_at":"2024-12-17T07:46:21.000Z","dependencies_parsed_at":"2024-11-07T23:33:23.756Z","dependency_job_id":"d2f5290a-07ec-44cc-96c0-6e1cd37ebf99","html_url":"https://github.com/DotskinMaksim/advertisements-service","commit_stats":null,"previous_names":["dotskinmaksim/advertisements-service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotskinMaksim%2Fadvertisements-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotskinMaksim%2Fadvertisements-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotskinMaksim%2Fadvertisements-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotskinMaksim%2Fadvertisements-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DotskinMaksim","download_url":"https://codeload.github.com/DotskinMaksim/advertisements-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246207508,"owners_count":20740723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","javascript","mariadb","open-source","php","rest-api","vuejs","web-development"],"created_at":"2024-12-10T00:12:09.383Z","updated_at":"2025-12-30T23:17:54.149Z","avatar_url":"https://github.com/DotskinMaksim.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Running Containers for the Project\n\nThis document provides a step-by-step guide on how to install Docker, Docker Compose, run containers, and configure the project.\n\n---\n\n## Installing Docker\n\n1. Download and execute the script to install Docker:\n\n    ```bash\n    curl -fsSL https://get.docker.com -o get-docker.sh\n    sudo sh get-docker.sh\n    ```\n\n2. Verify that Docker is installed correctly:\n\n    ```bash\n    docker --version\n    ```\n\n3. Add the current user to the Docker group to run commands without `sudo`:\n\n    ```bash\n    sudo usermod -aG docker $USER\n    ```\n\n    After this, log out and log back in.\n\n---\n\n## Installing Docker Compose\n\n1. Install the Docker Compose plugin:\n\n    ```bash\n    sudo apt-get update\n    sudo apt-get install docker-compose-plugin\n    ```\n\n2. Verify Docker Compose installation:\n\n    ```bash\n    docker compose version\n    ```\n\n---\n\n## Project Configuration\n\n1. Create a `docker-compose.yml` file in the project root with the following content:\n\n    ```yaml\n    version: \"3.8\"\n    \n    services:\n      nginx:\n        image: dotskinmaksim/nginx:latest\n        container_name: nginx-container\n        ports:\n          - \"80:8080\"\n        restart: unless-stopped\n        dns:\n          - 172.18.0.3\n        networks:\n          custom_network:\n            ipv4_address: 172.18.0.2\n    \n      mysql:\n        image: dotskinmaksim/mysql:latest\n        container_name: mysql-container\n        ports:\n          - \"3306:3306\"\n        environment:\n          MYSQL_ROOT_PASSWORD: 123\n          MYSQL_DATABASE: ads_database\n        restart: unless-stopped\n        networks:\n          custom_network:\n            ipv4_address: 172.18.0.4\n      \n      dns:\n        image: dotskinmaksim/dns:latest\n        container_name: dns-container\n        ports:\n          - \"5353:53/udp\"\n          - \"5353:53/tcp\"\n        restart: unless-stopped\n        networks:\n          custom_network:\n            ipv4_address: 172.18.0.3\n    \n    networks:\n      custom_network:\n        driver: bridge\n        ipam:\n          config:\n            - subnet: 172.18.0.0/24\n    ```\n\n2. Set the IP address of your virtual machine:\n\n    ```bash\n    172.16.13.1\n    ```\n\n---\n\n## Building and Running Containers\n\n1. Start the containers using Docker Compose:\n\n    ```bash\n    docker compose up -d\n    ```\n\n2. Check running containers:\n\n    ```bash\n    docker ps\n    ```\n\n3. Set the DNS server:\n\n    ```bash\n    172.18.0.3\n    ```\n\n4. The website will be available at:\n\n    ```bash\n    ls2.myads.loc\n    ```\n\n---\n\n## Stopping Containers\n\nTo stop the containers, run:\n\n```bash\ndocker compose down\n```\n\n---\n\n## Troubleshooting\n\n1.\tIf you encounter a network error, ensure your network is correctly configured in the networks section of the docker-compose.yml file.\n2.\tCheck container logs for diagnostics:\n\n    ```bash\n    docker logs \u003ccontainer_name\u003e\n    ```\n\n---\n\nNow your project is ready to run on Docker. Happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotskinmaksim%2Fadvertisements-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotskinmaksim%2Fadvertisements-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotskinmaksim%2Fadvertisements-service/lists"}