I'm trying to configure a gitlab-ci.yml file to automatically build two Docker images. I've seen it being done with docker-compose, but in my case I don't want to use docker-compose.
The docker-compose.yml configuration that I've seen is something like this:
version: '3'
services:
vcxagency-base:
build:
context: https://github.com/AbsaOSS/vcxagencynode.git#master
dockerfile: ./vcxagency-base/vcxagency-base.Dockerfile
image: vcxagency-base:1.15.0
vcxagency-node:
build:
context: https://github.com/AbsaOSS/vcxagencynode.git#master
dockerfile: ./vcxagency-node/Dockerfile
image: vcxagency-node:0.3.1
ports:
- 8080:8080
depends_on:
- postgres
environment:
- LOG_LEVEL=debug
- LOG_ENABLE_INDYSDK=false
- LOG_JSON_TO_CONSOLE=false
- SERVER_PORT=8080
- SERVER_MAX_REQUEST_SIZE_KB=300
- SERVER_ENABLE_TLS=false
I haven't really worked with Docker at all. I tried to explore the documentation, but couldn't find something specific.
The goal would be to have these running on a Kubernetes cluster, but for now I just want to build the images in GitLab.