update docker compose
This commit is contained in:
@ -22,7 +22,7 @@ urlpatterns = [
|
|||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('auth/', include('knox.urls')),
|
path('auth/', include('knox.urls')),
|
||||||
path('api/', include("rog.urls")),
|
path('api/', include("rog.urls")),
|
||||||
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
]
|
||||||
|
|
||||||
admin.site.site_header = "ROGANING"
|
admin.site.site_header = "ROGANING"
|
||||||
admin.site.site_title = "Roganing Admin Portal"
|
admin.site.site_title = "Roganing Admin Portal"
|
||||||
|
|||||||
@ -61,7 +61,7 @@ external_pid_file = '/var/run/postgresql/12-main.pid' # write an extra PID fil
|
|||||||
# defaults to 'localhost'; use '*' for all
|
# defaults to 'localhost'; use '*' for all
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
port = 5432 # (change requires restart)
|
port = 5432 # (change requires restart)
|
||||||
max_connections = 1200 # (change requires restart)
|
max_connections = 100 # (change requires restart)
|
||||||
#superuser_reserved_connections = 3 # (change requires restart)
|
#superuser_reserved_connections = 3 # (change requires restart)
|
||||||
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
|
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
@ -118,7 +118,7 @@ ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
|
|||||||
|
|
||||||
# - Memory -
|
# - Memory -
|
||||||
|
|
||||||
shared_buffers = 512MB # min 128kB
|
shared_buffers = 128MB # min 128kB
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
#huge_pages = try # on, off, or try
|
#huge_pages = try # on, off, or try
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
|
|||||||
@ -25,6 +25,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
- static_volume:/app/static
|
- static_volume:/app/static
|
||||||
|
- media_volume:/app/media
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: "on-failure"
|
restart: "on-failure"
|
||||||
@ -38,6 +39,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||||
- static_volume:/app/static
|
- static_volume:/app/static
|
||||||
|
- media_volume:/app/media
|
||||||
ports:
|
ports:
|
||||||
- 8100:80
|
- 8100:80
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -52,3 +54,4 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
static_volume:
|
static_volume:
|
||||||
|
media_volume:
|
||||||
|
|||||||
Reference in New Issue
Block a user