add first services

This commit is contained in:
rick 2024-12-23 17:12:56 +01:00
commit 4dd30b22c1
Signed by: Rick
GPG key ID: A2E7B6CA577C8F07
6 changed files with 50 additions and 0 deletions

5
COPYING.txt Normal file
View file

@ -0,0 +1,5 @@
Copyright 2024 rick <rick@gnous.eu>
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.

19
psql/compose.yml Normal file
View file

@ -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

2
psql/create_db.sh Normal file
View file

@ -0,0 +1,2 @@
docker exec psql-psql-1 psql -U psql -c 'create database toto';

2
psql/env.example Normal file
View file

@ -0,0 +1,2 @@
POSTGRES_USER="psql"
POSTGRES_PASSWORD="choose-a-password"

15
wakapi/compose.yml Normal file
View file

@ -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

7
wakapi/env.example Normal file
View file

@ -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"