-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dmitry
committed
Nov 13, 2023
1 parent
6d726d2
commit 501c9bb
Showing
10 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: '3.9' | ||
|
||
networks: | ||
beacon-network: | ||
|
||
x-environment: &postgres | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres | ||
- POSTGRES_BN_DATABASE=beacon-network | ||
- BEACON_NETWORK_CONFIG_DIR=/wildfly/BEACON-INF | ||
- BEACON_NETWORK_DB_CONNECTION_URL=jdbc:postgresql://postgres:5432/beacon-network | ||
- BEACON_NETWORK_DB_USERNAME=beacon | ||
- BEACON_NETWORK_DB_PASSWORD=beacon | ||
|
||
services: | ||
postgres: | ||
image: postgres:16.0-alpine | ||
restart: always | ||
environment: *postgres | ||
volumes: | ||
- ./postgresql/data:/var/lib/postgresql/data | ||
- ./postgresql/init.sh:/docker-entrypoint-initdb.d/init.sh:ro | ||
networks: | ||
- beacon-network | ||
wildfly: | ||
image: ghcr.io/elixir-europe/beacon-network-backend:latest | ||
container_name: "wildfly-beacon-network" | ||
depends_on: | ||
- postgres | ||
restart: always | ||
volumes: | ||
- ./wildfly/BEACON-INF:/wildfly/BEACON-INF | ||
hostname: wildfly | ||
networks: | ||
- beacon-network | ||
ports: | ||
- '9080:8080' | ||
- '9009:8009' | ||
- '9443:8443' | ||
environment: *postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
psql -v ON_ERROR_STOP=1 <<-EOSQL | ||
CREATE USER $BEACON_NETWORK_DB_USERNAME WITH ENCRYPTED PASSWORD '$BEACON_NETWORK_DB_PASSWORD'; | ||
GRANT ALL ON SCHEMA public TO $BEACON_NETWORK_DB_USERNAME; | ||
CREATE DATABASE "$POSTGRES_BN_DATABASE" OWNER $BEACON_NETWORK_DB_USERNAME; | ||
EOSQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
"https://beacons.bsc.es/beacon/v2.0.0", | ||
"https://beacon-apis-demo.ega-archive.org/api", | ||
"https://progenetix.org/beacon" | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.