Skip to content

Commit

Permalink
Adds missing Files
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikf02 committed Aug 12, 2024
1 parent 7fae173 commit f9f3315
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 53 deletions.
53 changes: 0 additions & 53 deletions backend/aashub/main.go

This file was deleted.

38 changes: 38 additions & 0 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
services:
app:
image: mcr.microsoft.com/devcontainers/go:1-1.22-bookworm
container_name: app
volumes:
- ../:/workspace:cached
command: /bin/sh -c "cd /workspace/cmd/movie-api && go run main.go"
ports:
- 9000:9000
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9000/health > /proc/1/fd/1 2>/proc/1/fd/2 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
mariadb:
condition: service_healthy

mariadb:
image: mariadb:10.6
container_name: mariadb
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: moviesdb
MYSQL_USER: user
MYSQL_PASSWORD: password
volumes:
- ../mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5

volumes:
mysql-data:

0 comments on commit f9f3315

Please sign in to comment.