Commit 51e22c7d authored by Hanoi Calvo Fernandez's avatar Hanoi Calvo Fernandez

poniendo los files basicos para el proyecto

parent ec0b8f92
version: '3'
services:
db:
image: postgres:11.6
container_name: pstgres95
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- POSTGRES_DB=postgres
restart: always # run as a service
odoo12:
image: odoo:13.0
container_name: odoo12
depends_on:
- db
ports:
- "8069:8069"
tty: true
command: -- --dev=reload
# command: odoo scaffold /mnt/extra-addons/test_module
volumes:
- ./addons:/mnt/extra-addons
- ./etc:/etc/odoo
restart: always # run as a service
pgadmin:
image: dpage/pgadmin4:4.25
container_name: pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin
PGADMIN_DEFAULT_PASSWORD: ecdevsllp
PGADMIN_LISTEN_PORT: 80
ports:
- "8080:80"
links:
- "db:pgsql-server"
nginx:
image: nginx:latest
container_name: nginx
depends_on:
- odoo13
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
- 443:443
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
server {
server_name "~^www.(.*)$" ;
return 301 $scheme://$1$request_uri ;
}
server {
listen 80 default;
# increase proxy buffer to handle some Odoo web requests
proxy_buffers 16 64k;
proxy_buffer_size 128k;
# Specifies the maximum accepted body size of a client request,
# as indicated by the request header Content-Length.
client_max_body_size 200m;
location / {
proxy_pass http://odoo13:8069;
# force timeouts if the backend dies
proxy_read_timeout 600s;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
# set headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# cache some static data in memory for 60mins.
# under heavy load this should relieve stress on the OpenERP web interface a bit.
location ~* /web/static/ {
proxy_cache_valid 200 60m;
proxy_buffering on;
expires 864000;
proxy_pass http://odoo13:8069;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment