Go to file
Ivan Titov 3e04a6dd24
Some checks failed
Deploy to Server (Docker) / deploy (push) Failing after 48s
save
2025-03-22 12:48:21 +03:00
.gitea/workflows Rename image 2025-03-22 12:01:48 +03:00
cmd/task_manager DB connect 2025-03-22 11:32:29 +03:00
config save 2025-03-22 12:48:21 +03:00
database/init save 2025-03-22 12:31:07 +03:00
internal save 2025-03-22 12:48:21 +03:00
vendor Save 2025-03-21 23:24:24 +03:00
.dockerignore Save state 2025-03-21 21:47:32 +03:00
compose.yaml DB connect 2025-03-22 11:32:29 +03:00
Dockerfile Save 2025-03-21 23:55:47 +03:00
go.mod Save 2025-03-21 23:24:24 +03:00
go.sum Save 2025-03-21 23:24:24 +03:00
README.md Save state 2025-03-21 21:47:32 +03:00

Running the Project with Docker

This section provides instructions to build and run the project using Docker.

Requirements

  • Docker version 20.10 or later
  • Docker Compose version 1.29 or later

Environment Variables

  • POSTGRES_USER: Database username (default: user)
  • POSTGRES_PASSWORD: Database password (default: password)
  • POSTGRES_DB: Database name (default: appdb)

Build and Run Instructions

  1. Clone the repository and navigate to the project root directory.
  2. Build and start the services using Docker Compose:
    docker-compose up --build
    
  3. Access the application at http://localhost:8080.

Configuration

  • The application binary is built using Go version 1.24.
  • The database service uses the postgres:latest image.

Exposed Ports

  • Application: 8080 (mapped to 8080 on the host)
  • Database: Not exposed to the host

For further details, refer to the project documentation or contact the maintainers.