Skip to content

Commit 758b271

Browse files
committed
chore: add example (and recommended) Gunicorn configuration into Podman image & Podman Compose example
1 parent 516746c commit 758b271

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Containerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ RUN pip install -r requirements.txt --no-cache-dir
77

88
RUN mkdir /data
99

10+
COPY examples/gunicorn.conf.py /config/gunicorn.conf.py
11+
1012
EXPOSE 8000
1113

1214
ENV PELIT_CONFIG "/config/pelit.toml"

examples/compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '3.8'
2+
3+
services:
4+
pelit:
5+
image: ghcr.io/tokenicrat/pelit
6+
container_name: pelit
7+
restart: unless-stopped
8+
volumes:
9+
- ./data:/data
10+
- ./config.toml:/config/pelit.toml
11+
networks:
12+
- pelit-network
13+
deploy:
14+
resources:
15+
limits:
16+
memory: 256M
17+
reservations:
18+
memory: 128M
19+
20+
networks:
21+
pelit-network:

0 commit comments

Comments
 (0)