commit 4dd30b22c1aca2ea9700334c9997cf16fff64056 Author: rick Date: Mon Dec 23 17:12:56 2024 +0100 add first services diff --git a/COPYING.txt b/COPYING.txt new file mode 100644 index 0000000..5e6aa2d --- /dev/null +++ b/COPYING.txt @@ -0,0 +1,5 @@ +Copyright 2024 rick + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/psql/compose.yml b/psql/compose.yml new file mode 100644 index 0000000..66226c5 --- /dev/null +++ b/psql/compose.yml @@ -0,0 +1,19 @@ +services: + psql: + image: postgres:12.3 + restart: always + env_file: + - .env + volumes: + - /opt/rick_db:/var/lib/postgresql/data + + #volumes: + # rick-db-data: {} + networks: + - rick_db + + +networks: + rick_db: + name: rick_db + external: true diff --git a/psql/create_db.sh b/psql/create_db.sh new file mode 100644 index 0000000..c448a0f --- /dev/null +++ b/psql/create_db.sh @@ -0,0 +1,2 @@ +docker exec psql-psql-1 psql -U psql -c 'create database toto'; + diff --git a/psql/env.example b/psql/env.example new file mode 100644 index 0000000..5067587 --- /dev/null +++ b/psql/env.example @@ -0,0 +1,2 @@ +POSTGRES_USER="psql" +POSTGRES_PASSWORD="choose-a-password" diff --git a/wakapi/compose.yml b/wakapi/compose.yml new file mode 100644 index 0000000..7b282b9 --- /dev/null +++ b/wakapi/compose.yml @@ -0,0 +1,15 @@ +services: + wakapi: + image: ghcr.io/muety/wakapi:latest + ports: + - 30413:3000 + restart: always + env_file: + - .env + networks: + - rick_db + +networks: + rick_db: + name: rick_db + external: true diff --git a/wakapi/env.example b/wakapi/env.example new file mode 100644 index 0000000..d98acf2 --- /dev/null +++ b/wakapi/env.example @@ -0,0 +1,7 @@ +WAKAPI_DB_TYPE="postgres" +WAKAPI_DB_USER="psql" +WAKAPI_DB_PASSWORD="choose-a-password" +WAKAPI_DB_HOST="psql" +WAKAPI_DB_PORT="5432" +WAKAPI_DB_NAME="wakapi" +ENVIRONMENT="prod"