@ -1,4 +1,4 @@
|
|||||||
FROM elixir:1.7-alpine
|
FROM elixir:1.8-alpine
|
||||||
|
|
||||||
ENV UID=911 GID=911 \
|
ENV UID=911 GID=911 \
|
||||||
MIX_ENV=prod
|
MIX_ENV=prod
|
||||||
@ -26,7 +26,6 @@ RUN mix local.rebar --force \
|
|||||||
&& mix deps.get \
|
&& mix deps.get \
|
||||||
&& mix compile
|
&& mix compile
|
||||||
|
|
||||||
RUN mkdir /pleroma/uploads
|
|
||||||
VOLUME /pleroma/uploads/
|
VOLUME /pleroma/uploads/
|
||||||
|
|
||||||
CMD ["mix", "phx.server"]
|
CMD ["mix", "phx.server"]
|
||||||
|
10
README.md
10
README.md
@ -122,7 +122,7 @@ docker-compose build
|
|||||||
docker build -t pleroma .
|
docker build -t pleroma .
|
||||||
```
|
```
|
||||||
|
|
||||||
I prefer the later because it's more verbose.
|
I prefer the latter because it's more verbose.
|
||||||
|
|
||||||
Setup the database:
|
Setup the database:
|
||||||
|
|
||||||
@ -136,6 +136,14 @@ Get your web push keys and copy them to `secret.exs`:
|
|||||||
docker-compose run --rm web mix web_push.gen.keypair
|
docker-compose run --rm web mix web_push.gen.keypair
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You will need to build the image again, to pick up your updated `secret.exs` file:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose build
|
||||||
|
# or
|
||||||
|
docker build -t pleroma .
|
||||||
|
```
|
||||||
|
|
||||||
You can now launch your instance:
|
You can now launch your instance:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
Reference in New Issue
Block a user