-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker-compose): Simplify docker compose file (#452)
* chore(docker-compose): ease the usage of the docker compose file * add some other variables * some cleanup * add email env vars * add docker compose CI * update worker healthcheck * fix ci
- Loading branch information
Showing
3 changed files
with
129 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 |
Submodule api
updated
48 files
Oops, something went wrong.