mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-04-25 16:32:44 -05:00
Looks like the account certs directory doesn't actually do anything
This commit is contained in:
parent
7eb5108a47
commit
e0cb3e9769
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,5 +1,2 @@
|
|||
# Local environment variables (used for secrets)
|
||||
/environment/*.local.env
|
||||
|
||||
# Account server certificates
|
||||
/certs/
|
||||
|
|
|
|||
|
|
@ -185,8 +185,8 @@ services:
|
|||
- ./environment/account.env
|
||||
- ./environment/account.local.env
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./certs
|
||||
- type: volume
|
||||
source: account-certificates
|
||||
target: /app/certs
|
||||
dns: 172.20.0.2
|
||||
networks:
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
required_certs="account|nex test|service test|nex friends"
|
||||
|
||||
# The datastore keys are required for the account server to start, so this needs
|
||||
# to run first
|
||||
docker compose run --rm account generate-keys.js nex datastore
|
||||
|
||||
docker compose up -d account
|
||||
|
||||
# Split the certs on | while looping
|
||||
IFS="|"
|
||||
for cert in $required_certs; do
|
||||
# Split the cert again on space to separate the 2 arguments
|
||||
IFS=" "
|
||||
set -- "$cert"
|
||||
docker compose exec account node generate-keys.js $cert
|
||||
done
|
||||
|
||||
docker compose down
|
||||
Loading…
Reference in New Issue
Block a user