Skip to content

Commit b08181e

Browse files
authored
Merge pull request #241 from pawelmalak/feature
Version 2.1.1
2 parents 2ca90a1 + bc077b6 commit b08181e

24 files changed

+26294
-256
lines changed

.docker/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14 as builder
1+
FROM node:16 as builder
22

33
WORKDIR /app
44

@@ -16,7 +16,7 @@ RUN mkdir -p ./public ./data \
1616
&& mv ./client/build/* ./public \
1717
&& rm -rf ./client
1818

19-
FROM node:14-alpine
19+
FROM node:16-alpine
2020

2121
COPY --from=builder /app /app
2222

.docker/Dockerfile.multiarch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM node:14-alpine3.11 as builder
1+
FROM node:16-alpine3.11 as builder
22

33
WORKDIR /app
44

55
COPY package*.json ./
66

7-
RUN apk --no-cache --virtual build-dependencies add python make g++ \
7+
RUN apk --no-cache --virtual build-dependencies add python python3 make g++ \
88
&& npm install --production
99

1010
COPY . .
@@ -17,7 +17,7 @@ RUN mkdir -p ./public ./data \
1717
&& mv ./client/build/* ./public \
1818
&& rm -rf ./client
1919

20-
FROM node:14-alpine3.11
20+
FROM node:16-alpine3.11
2121

2222
COPY --from=builder /app /app
2323

.docker/docker-compose.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
version: '3'
1+
version: '3.6'
2+
23
services:
34
flame:
45
image: pawelmalak/flame
56
container_name: flame
67
volumes:
7-
- /path/to/data:/app/data
8+
- /path/to/host/data:/app/data
9+
# - /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration
810
ports:
911
- 5005:5005
12+
# secrets:
13+
# - password # optional but required for (1)
1014
environment:
1115
- PASSWORD=flame_password
16+
# - PASSWORD_FILE=/run/secrets/password # optional but required for (1)
1217
restart: unless-stopped
18+
19+
# optional but required for Docker secrets (1)
20+
# secrets:
21+
# password:
22+
# file: /path/to/secrets/password

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PORT=5005
22
NODE_ENV=development
3-
VERSION=2.1.0
3+
VERSION=2.1.1
44
PASSWORD=flame_password
55
SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*.md
1+
*.md
2+
docker-compose.yml

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### v2.1.1 (2021-12-02)
2+
- Added support for Docker secrets ([#189](https://github.com/pawelmalak/flame/issues/189))
3+
- Changed some messages and buttons to make it easier to open bookmarks editor ([#239](https://github.com/pawelmalak/flame/issues/239))
4+
15
### v2.1.0 (2021-11-26)
26
- Added option to set custom order for bookmarks ([#43](https://github.com/pawelmalak/flame/issues/43)) and ([#187](https://github.com/pawelmalak/flame/issues/187))
37
- Added support for .ico files for custom icons ([#209](https://github.com/pawelmalak/flame/issues/209))

README.md

+28-5
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,42 @@ docker buildx build \
5555
#### Docker-Compose
5656

5757
```yaml
58-
version: '2.1'
58+
version: '3.6'
59+
5960
services:
6061
flame:
61-
image: pawelmalak/flame:latest
62+
image: pawelmalak/flame
6263
container_name: flame
6364
volumes:
64-
- <host_dir>:/app/data
65-
- /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration feature
65+
- /path/to/host/data:/app/data
66+
- /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration
6667
ports:
6768
- 5005:5005
69+
secrets:
70+
- password # optional but required for (1)
6871
environment:
6972
- PASSWORD=flame_password
73+
- PASSWORD_FILE=/run/secrets/password # optional but required for (1)
7074
restart: unless-stopped
75+
76+
# optional but required for Docker secrets (1)
77+
secrets:
78+
password:
79+
file: /path/to/secrets/password
80+
```
81+
82+
##### Docker Secrets
83+
84+
All environment variables can be overwritten by appending `_FILE` to the variable value. For example, you can use `PASSWORD_FILE` to pass through a docker secret instead of `PASSWORD`. If both `PASSWORD` and `PASSWORD_FILE` are set, the docker secret will take precedent.
85+
86+
```bash
87+
# ./secrets/flame_password
88+
my_custom_secret_password_123
89+
90+
# ./docker-compose.yml
91+
secrets:
92+
password:
93+
file: ./secrets/flame_password
7194
```
7295

7396
#### Skaffold
@@ -212,7 +235,7 @@ metadata:
212235
- Backup your `db.sqlite` before running script!
213236
- Known Issues:
214237
- generated icons are sometimes incorrect
215-
238+
216239
```bash
217240
pip3 install Pillow, beautifulsoup4
218241

client/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_VERSION=2.1.0
1+
REACT_APP_VERSION=2.1.1

0 commit comments

Comments
 (0)