update docker compose
This commit is contained in:
@ -22,7 +22,7 @@ urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('auth/', include('knox.urls')),
|
||||
path('api/', include("rog.urls")),
|
||||
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
]
|
||||
|
||||
admin.site.site_header = "ROGANING"
|
||||
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
|
||||
# (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)
|
||||
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
|
||||
# (change requires restart)
|
||||
@ -118,7 +118,7 @@ ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
|
||||
|
||||
# - Memory -
|
||||
|
||||
shared_buffers = 512MB # min 128kB
|
||||
shared_buffers = 128MB # min 128kB
|
||||
# (change requires restart)
|
||||
#huge_pages = try # on, off, or try
|
||||
# (change requires restart)
|
||||
|
||||
@ -25,6 +25,7 @@ services:
|
||||
volumes:
|
||||
- .:/app
|
||||
- static_volume:/app/static
|
||||
- media_volume:/app/media
|
||||
env_file:
|
||||
- .env
|
||||
restart: "on-failure"
|
||||
@ -38,6 +39,7 @@ services:
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
- static_volume:/app/static
|
||||
- media_volume:/app/media
|
||||
ports:
|
||||
- 8100:80
|
||||
depends_on:
|
||||
@ -52,3 +54,4 @@ networks:
|
||||
volumes:
|
||||
postgres_data:
|
||||
static_volume:
|
||||
media_volume:
|
||||
|
||||
Reference in New Issue
Block a user