-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose-development.yaml
45 lines (41 loc) · 1.09 KB
/
compose-development.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
web:
image: ulfri/timetable
# Rewrite github repository with the code in the current directory
volumes:
- type: bind
source: .
target: /home/timetable/urnik
ports:
- "8080:8080"
links:
- db
environment:
- DJANGO_SETTINGS_MODULE=urnik_fri.settings_example
- SECRET_KEY=type_your_secret_key
- UWSGI_CHDIR=/home/timetable/urnik
- UWSGI_MODULE=urnik_fri.wsgi_example:application
- UWSGI_MASTER=Tru
- UWSGI_PIDFILE=/tmp/project-master.pid
- UWSGI_VACUUM=True
- UWSGI_MAX_REQUESTS=5000
- UWSGI_UID=timetable
- UWSGI_GID=timetable
- UWSGI_HTTP_SOCKET=:8080
- UWSGI_PLUGINS=python3
- UWSGI_STATIC_MAP=/static=/home/timetable/static
- UWSGI_PY_AUTORELOAD=1
restart: always
db:
image: postgres
volumes:
- timetable-data:/var/lib/postgresql/data
restart: always
environment:
- POSTGRES_USER=timetable
- POSTGRES_DB=timetable
- POSTGRES_PASSWORD=database_password
ports:
- "5432:5432"
volumes:
timetable-data: