Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scraly/cdktf-docker
https://github.com/scraly/cdktf-docker
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/scraly/cdktf-docker
- Owner: scraly
- Created: 2024-03-06T11:12:41.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-06T19:12:00.000Z (8 months ago)
- Last Synced: 2024-05-01T21:50:06.984Z (6 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cdktf-docker
This repository allows you to deploy applications running in Docker containers, with CDK for Terraform (CDKTF).
- a backend, in Go, that display a whale ^^
- a frontend, in NodeJS, that call the backend and ... display the whale :)`backend` and `frontend` containers will run in a network named `my_network`.
## Prerequisites
* Install cdktf CLI
## Docker
Deploy our stack:
```bash
$ cdktf get
$ cdktf deploy
```Check everything is corerctly deployed:
```bash
$ docker image ls
$ docker container ls
$ docker network ls
$ curl localhost:8000
```Destroy your stack:
```bash
$ cdktf destroy
```