From a301afd5d7d65b124074bc28945efa7e695428ce Mon Sep 17 00:00:00 2001 From: legonzaur Date: Sun, 1 Jun 2025 14:13:10 +0200 Subject: [PATCH] initial commit --- .gitignore | 1 + back.container | 11 +++++++++++ front.container | 11 +++++++++++ postgres.container | 10 ++++++++++ postgres.volume | 0 vote.pod | 0 6 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 back.container create mode 100644 front.container create mode 100644 postgres.container create mode 100644 postgres.volume create mode 100644 vote.pod diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/back.container b/back.container new file mode 100644 index 0000000..c9fe57d --- /dev/null +++ b/back.container @@ -0,0 +1,11 @@ +[Container] +Image=git.legonzaur.fr/legonzaur/vote-back:latest +Environment=API_PREFIX=/api +Environment=DEV_MODE=false +EnvironmentFile=./.env +Pod=vote.pod + +[Service] +Restart=always +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/front.container b/front.container new file mode 100644 index 0000000..96e7583 --- /dev/null +++ b/front.container @@ -0,0 +1,11 @@ +[Container] +Image=git.legonzaur.fr/legonzaur/vote-front:latest +Environment=NUXT_PUBLIC_API_BASE=/api +Environment=PORT=3001 +Pod=vote.pod + +[Service] +Restart=always + +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/postgres.container b/postgres.container new file mode 100644 index 0000000..ce54736 --- /dev/null +++ b/postgres.container @@ -0,0 +1,10 @@ +[Container] +Image=docker.io/library/postgres:17 +Volume=%h/volumes/bdd-pg17:/var/lib/postgresql/data:Z +Environment=POSTGRES_PASSWORD=SUPERMDP +HostName=postgres + +[Service] +Restart=always +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/postgres.volume b/postgres.volume new file mode 100644 index 0000000..e69de29 diff --git a/vote.pod b/vote.pod new file mode 100644 index 0000000..e69de29