mirror of
https://github.com/pinry/pinry.git
synced 2025-11-12 16:15:43 +01:00
19 lines
417 B
YAML
19 lines
417 B
YAML
|
|
version: '3'
|
||
|
|
|
||
|
|
services:
|
||
|
|
web:
|
||
|
|
build: .
|
||
|
|
working_dir: /app
|
||
|
|
command: >
|
||
|
|
bash -c "python manage.py migrate
|
||
|
|
&& python3 manage.py collectstatic --noinput
|
||
|
|
&& gunicorn pinry.wsgi:application -b 0.0.0.0:8000 --timeout 30 --log-file - "
|
||
|
|
ports:
|
||
|
|
- "127.0.0.1:2048:8000"
|
||
|
|
environment:
|
||
|
|
- SECRET_KEY=CHANGE-ME
|
||
|
|
user: ${CURRENT_UID}
|
||
|
|
volumes:
|
||
|
|
- .:/app
|
||
|
|
restart: always
|