Skip to content

chore(docker-compose): Simplify docker compose file (#452) #1

chore(docker-compose): Simplify docker compose file (#452)

chore(docker-compose): Simplify docker compose file (#452) #1

Workflow file for this run

name: "Docker CI"
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker-ci:
name: Docker CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
docker-compose.yml
- name: Launch all services with default configuration
env:
LAGO_CREATE_ORG: "true"
LAGO_ORG_NAME: "Lago"
LAGO_ORG_USER_EMAIL: "[email protected]"
LAGO_ORG_USER_PASSWORD: "foobar"
LAGO_ORG_API_KEY: "test"
run: |
export LAGO_RSA_PRIVATE_KEY="`openssl genrsa 2048 | base64 | tr -d '\n'`"
docker compose up -d --wait
- name: cURL API
run: curl -f http://localhost:3000/health
- name: cURL Front
run: curl -f http://localhost:80
- name: cURL API Customers
run: |
curl -f http://localhost:3000/api/v1/customers -H "Authorization: Bearer test"
- name: Down services
run: docker compose down