Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Funkwhale Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Creak
Funkwhale Docker
Commits
502d6095
Commit
502d6095
authored
3 years ago
by
Creak
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parent
d4a5cac0
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.editorconfig
+11
-0
11 additions, 0 deletions
.editorconfig
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.vscode/settings.json
+5
-0
5 additions, 0 deletions
.vscode/settings.json
README.md
+10
-1
10 additions, 1 deletion
README.md
setup.sh
+63
-0
63 additions, 0 deletions
setup.sh
with
90 additions
and
1 deletion
.editorconfig
0 → 100644
+
11
−
0
View file @
502d6095
root
=
true
[*]
end_of_line
=
lf
insert_final_newline
=
true
indent_style
=
space
indent_size
=
4
trim_trailing_whitespace
=
true
[.md]
trim_trailing_whitespace
=
false
This diff is collapsed.
Click to expand it.
.gitignore
0 → 100644
+
1
−
0
View file @
502d6095
templates/
This diff is collapsed.
Click to expand it.
.vscode/settings.json
0 → 100644
+
5
−
0
View file @
502d6095
{
"cSpell.words"
:
[
"Funkwhale"
]
}
This diff is collapsed.
Click to expand it.
README.md
+
10
−
1
View file @
502d6095
#
f
unkwhale
-d
ocker
#
F
unkwhale
D
ocker
This repo is here to help installing Funkwhale using Docker. It follows the
[
multi-container installation documentation
][
docs-multi-container
]
.
To set up your instance, run this script:
```
sh
setup.sh
```
[
docs-multi-container
]:
https://docs.funkwhale.audio/installation/docker.html#docker-multi-container
This diff is collapsed.
Click to expand it.
setup.sh
0 → 100755
+
63
−
0
View file @
502d6095
#!/bin/sh
FUNKWHALE_VERSION
=
"1.2.2"
FUNKWHALE_HOSTNAME
=
""
while
getopts
"h:"
"options"
;
do
case
$options
in
h
)
FUNKWHALE_HOSTNAME
=
$OPTARG
;;
?
)
exit
1
;;
esac
done
while
[
-z
$FUNKWHALE_HOSTNAME
]
;
do
read
-ep
"Please enter your Funkwhale hostname: "
FUNKWHALE_HOSTNAME
done
echo
-n
"Fetching templates... "
mkdir
-p
templates/nginx
curl
-sLo
templates/nginx/funkwhale.template
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
${
FUNKWHALE_VERSION
}
/deploy/docker.nginx.template"
curl
-sLo
templates/nginx/funkwhale_proxy.conf
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
${
FUNKWHALE_VERSION
}
/deploy/docker.funkwhale_proxy.conf"
curl
-sLo
templates/docker-compose.yml
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
${
FUNKWHALE_VERSION
}
/deploy/docker-compose.yml"
curl
-sLo
templates/env.prod.sample
"https://dev.funkwhale.audio/funkwhale/funkwhale/raw/
${
FUNKWHALE_VERSION
}
/deploy/env.prod.sample"
echo
"done"
# Create .env and reduce permissions on the .env file since it contains
# sensitive data.
echo
"Copy files"
mkdir
nginx
cp
templates/nginx/funkwhale.template nginx/
cp
templates/nginx/funkwhale_proxy.conf nginx/
cp
templates/docker-compose.yml
.
cp
templates/env.prod.sample .env
chmod
600 .env
echo
"Set Funkwhale version:
$FUNKWHALE_VERSION
"
sed
-i
"s/FUNKWHALE_VERSION=latest/FUNKWHALE_VERSION=
$FUNKWHALE_VERSION
/"
.env
echo
"Set Funkwhale hostname:
$FUNKWHALE_HOSTNAME
"
sed
-i
"s/FUNKWHALE_HOSTNAME=yourdomain.funkwhale/FUNKWHALE_HOSTNAME=
$FUNKWHALE_HOSTNAME
/"
.env
echo
"Set Django secret key: xxxxxxxx"
DJANGO_SECRET_KEY
=
$(
openssl rand
-base64
45
)
sed
-i
"s#DJANGO_SECRET_KEY=#DJANGO_SECRET_KEY=
$DJANGO_SECRET_KEY
#"
.env
echo
"Pull the Docker images"
docker-compose pull
echo
"Run initial DB migrations"
docker-compose up
-d
postgres
docker-compose run
--rm
api python manage.py migrate
echo
"Create super user"
docker-compose run
--rm
api python manage.py createsuperuser
echo
"Run the Funkwhale instance"
docker-compose up
-d
echo
"The instance is now running at https://
$FUNKWHALE_HOSTNAME
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment