-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
32 lines (29 loc) · 997 Bytes
/
docker-compose.yml
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
services:
web:
build:
context: .
dockerfile: docker/production/Dockerfile
depends_on:
- db
- cache
environment:
DJANGO_SETTINGS_MODULE: config.settings.production
env_file: /root/volumes/cualbondi.org/.env
volumes:
- '/root/volumes/cualbondi.org/web_media:/app/apps/media'
- '/root/volumes/cualbondi.org/web_static:/app/staticfiles'
command: /gunicorn.sh
db:
build: ./docker/postgres
env_file: /root/volumes/cualbondi.org/.env
volumes:
- '/root/volumes/cualbondi.org/volume_db:/var/lib/postgresql/data'
sysctls:
- kernel.shmmax=4294967296
- kernel.shmall=4194304
command: "postgres -c shared_buffers=2GB -c work_mem=128MB -c statement_timeout=300000 -c max_parallel_workers_per_gather=16 -c max_worker_processes=32 -c max_connections=7000 -c shared_preload_libraries='pg_stat_statements'"
ports:
- '127.0.0.1:5432:5432'
shm_size: 4g
cache:
image: 'memcached:alpine'