|
@ -22,4 +22,21 @@ database: |
|
|
|
|
|
|
|
|
EOF |
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
## XXXvlab: needed only for psql access to check if database is ready |
|
|
|
|
|
## before launching the app. |
|
|
|
|
|
uid=$(docker_get_uid "$SERVICE_NAME" peertube) || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
chown "$uid" "$SERVICE_CONFIGSTORE/root/.pgpass" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
config-add " |
|
|
|
|
|
services: |
|
|
|
|
|
$MASTER_BASE_SERVICE_NAME: |
|
|
|
|
|
environment: |
|
|
|
|
|
PGUSER: $USER |
|
|
|
|
|
PGHOST: $TARGET_SERVICE_NAME |
|
|
|
|
|
PGDATABASE: $DBNAME |
|
|
|
|
|
volumes: |
|
|
|
|
|
- $SERVICE_CONFIGSTORE/root/.pgpass:/var/lib/peertube/.pgpass |
|
|
|
|
|
" |
|
|
|
|
|
|
|
|
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access." |
|
|
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access." |