Skip to content

getaux/docker-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AuctionX Docker images

We advise you to use this docker images in a docker-compose environment, especially for the API one which need other components:

  • PostgreSQL >= 13
  • Webserver (Caddy, NGINX, Apache, etc.)

Api

Build & publish

sh publish-api.sh

Usage

Pull container:

docker pull ghcr.io/getaux/api:latest

Run api:

docker run --name auctionx-api \
 --env APP_ENV=prod \
 --env DATABASE_URL="postgresql://user:password@127.0.0.1:5432/database_name?serverVersion=13&charset=utf8" \
 --env SERVER_NAME=api.yourdomain.tld \
 --env IMX_API_ENV=prod \
 --env IMX_ESCROW_WALLET=public_key_of_your_escrow_wallet \
 --env BUS_API_KEY=api_key_for_you_worker \
 -it ghcr.io/getaux/api;

Create database on your postgresql:

docker exec -it auctionx-api console doctrine:database:create

Create database schema:

docker exec -it auctionx-api console doctrine:migrations:migrate

Worker

Build & publish

sh publish-worker.sh

Usage

Pull container:

docker pull ghcr.io/getaux/worker:latest

Setup worker and setup credentials:

docker run --name auctionx-worker -v ~/.auctionx:/srv/app/.auctionx -it ghcr.io/getaux/worker

Run worker with auto-restart to process messages:

docker run --name auctionx-worker -d --restart unless-stopped -v ~/.auctionx:/srv/app/.auctionx ghcr.io/getaux/worker

License

Licensed under the terms of the MIT License.