add first services
This commit is contained in:
commit
4dd30b22c1
6 changed files with 50 additions and 0 deletions
5
COPYING.txt
Normal file
5
COPYING.txt
Normal 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
19
psql/compose.yml
Normal 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
2
psql/create_db.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker exec psql-psql-1 psql -U psql -c 'create database toto';
|
||||
|
2
psql/env.example
Normal file
2
psql/env.example
Normal file
|
@ -0,0 +1,2 @@
|
|||
POSTGRES_USER="psql"
|
||||
POSTGRES_PASSWORD="choose-a-password"
|
15
wakapi/compose.yml
Normal file
15
wakapi/compose.yml
Normal 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
7
wakapi/env.example
Normal 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"
|
Loading…
Reference in a new issue