You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: friendica/content.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Friendica is a decentralised communications platform that integrates social communication. Our platform links to independent social projects and corporate services.
@@ -12,7 +12,7 @@ The `apache` tag contains a full Friendica installation including an apache web
12
12
13
13
The second option is a `fpm` container. It is based on the [php-fpm](https://hub.docker.com/_/php/) image and runs a fastCGI-Process that serves your Friendica server. To use this image it must be combined with any Webserver that can proxy the http requests to the FastCGI-port of the container.
14
14
15
-
[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/nupplaphil/friendica-docker/fec33c98be957436279b7074ca08068b18622627/stack.yml) (Admin-E-Mail: `[email protected]`)
15
+
[](http://play-with-docker.com?stack=%%STACK-URL%%) (Admin-E-Mail: `[email protected]`)
16
16
17
17
## Using the apache image
18
18
@@ -21,7 +21,7 @@ You need at least one other mariadb/mysql-container to link it to Friendica.
21
21
The apache image contains a webserver and exposes port 80. To start the container type:
22
22
23
23
```console
24
-
$ docker run -d -p 8080:80 --link some-mysql:mysql friendica/server
24
+
$ docker run -d -p 8080:80 --network some-network %%IMAGE%%
25
25
```
26
26
27
27
Now you can access the Friendica installation wizard at http://localhost:8080/ from your host system.
@@ -31,7 +31,7 @@ Now you can access the Friendica installation wizard at http://localhost:8080/ f
31
31
To use the fpm image you need an additional web server that can proxy http-request to the fpm-port of the container. For fpm connection this container exposes port 9000. In most cases you might want use another container or your host as proxy. If you use your host you can address your Friendica container directly on port 9000. If you use another container, make sure that you add them to the same docker network (via `docker run --network <NAME> ...` or a `docker-compose` file). In both cases you don't want to map the fpm port to you host.
32
32
33
33
```console
34
-
$ docker run -d friendica/server:fpm
34
+
$ docker run -d %%IMAGE%%:fpm
35
35
```
36
36
37
37
As the fastCGI-Process is not capable of serving static files (style sheets, images, ...) the webserver needs access to these files. This can be achieved with the `volumes-from` option. You can find more information in the docker-compose section.
@@ -48,10 +48,9 @@ There are three options to enable the cron-job for Friendica:
48
48
49
49
**Friendica Settings**
50
50
51
-
-`FRIENDICA_URL` The Friendica URL path.
51
+
-`FRIENDICA_URL` The Friendica URL.
52
52
-`FRIENDICA_TZ` The default localization of the Friendica server.
53
53
-`FRIENDICA_LANG` The default language of the Friendica server.
54
-
-`FRIENDICA_PHP_PATH` The path of the PHP binary.
55
54
-`FRIENDICA_SITENAME` The Sitename of the Friendica server.
56
55
-`FRIENDICA_NO_VALIDATION` If set to `true`, the URL and E-Mail validation will be disabled.
57
56
-`FRIENDICA_DATA` If set to `true`, the fileystem will be used instead of the DB backend.
@@ -65,8 +64,7 @@ There are three options to enable the cron-job for Friendica:
65
64
66
65
**Database** (**required at installation**)
67
66
68
-
-`MYSQL_USERNAME` Username for the database user using mysql.
69
-
-`MYSQL_USER` Username for the database user using mariadb.
67
+
-`MYSQL_USER` Username for the database user using mysql / mariadb.
70
68
-`MYSQL_PASSWORD` Password for the database user using mysql / mariadb.
71
69
-`MYSQL_DATABASE` Name of the database using mysql / mariadb.
72
70
-`MYSQL_HOST` Hostname of the database server using mysql / mariadb.
@@ -104,7 +102,7 @@ The following environment variables are possible for the SMTP examples.
104
102
105
103
## Database settings
106
104
107
-
You have to link a running database container, e. g. `--link my-mysql:mysql`, and then use `mysql` as the database host on setup.
105
+
You have to add the Friendica container to the same network as the running database container, e. g. `--network some-network`, and then use `mysql` as the database host on setup.
108
106
109
107
## Persistent data
110
108
@@ -117,7 +115,8 @@ Friendica:
117
115
```console
118
116
$ docker run -d \
119
117
-v friendica-vol-1:/var/www/html \
120
-
friendica/server
118
+
--network some-network
119
+
%%IMAGE%%
121
120
```
122
121
123
122
Database:
@@ -127,6 +126,7 @@ Database:
127
126
```console
128
127
$ docker run -d \
129
128
-v mysql-vol-1:/var/lib/mysql \
129
+
--network some-network
130
130
mariadb
131
131
```
132
132
@@ -135,7 +135,7 @@ $ docker run -d \
135
135
The Friendica image supports auto configuration via environment variables. You can preconfigure everything that is asked on the install page on first run. To enable the automatic installation, you have to the following environment variables:
136
136
137
137
-`FRIENDICA_ADMIN_MAIL` E-Mail address of the administrator.
138
-
-`MYSQL_USERNAME` or `MYSQL_USER` Username for the database user using mysql/mariadb.
138
+
-`MYSQL_USER` Username for the database user using mysql / mariadb.
139
139
-`MYSQL_PASSWORD` Password for the database user using mysql / mariadb.
140
140
-`MYSQL_DATABASE` Name of the database using mysql / mariadb.
141
141
-`MYSQL_HOST` Hostname of the database server using mysql / mariadb.
@@ -144,7 +144,7 @@ The Friendica image supports auto configuration via environment variables. You c
144
144
145
145
## Updating to a newer version
146
146
147
-
You have to pull the latest image from the hub (`docker pull friendica`). The stable branch gets checked at every startup and will get updated if no installation was found or a new image is used.
147
+
You have to pull the latest image from the hub (`docker pull %%IMAGE%%`). The stable branch gets checked at every startup and will get updated if no installation was found or a new image is used.
148
148
149
149
# Running this image with docker-compose
150
150
@@ -174,7 +174,7 @@ services:
174
174
- MYSQL_RANDOM_ROOT_PASSWORD=yes
175
175
176
176
app:
177
-
image: friendica/server
177
+
image: %%IMAGE%%
178
178
restart: always
179
179
volumes:
180
180
- friendica:/var/www/html
@@ -226,7 +226,7 @@ services:
226
226
- MYSQL_RANDOM_ROOT_PASSWORD=yes
227
227
228
228
app:
229
-
image: friendica/server:fpm
229
+
image: %%IMAGE%%:fpm
230
230
restart: always
231
231
volumes:
232
232
- friendica:/var/www/html
@@ -271,7 +271,7 @@ The `*-dev` and `*-rc` branches are having additional possibilities to get the l
271
271
272
272
The following environment variables are possible for these kind of images too:
273
273
274
-
**Develop/Release Candidat Settings**
274
+
**Develop/Release Candidate Settings**
275
275
276
276
- `FRIENDICA_UPGRADE`If set to `true`, a develop or release candidat node will get updated at startup.
277
277
- `FRIENDICA_REPOSITORY` If set, a custom repository will be chosen (Default: `friendica`)
0 commit comments