[ADD]Caddy dev
This commit is contained in:
parent
7fb1872524
commit
260f3a0637
5
odoo/caddy/Caddyfile
Normal file
5
odoo/caddy/Caddyfile
Normal file
@ -0,0 +1,5 @@
|
||||
{$ODOO_SERVER_NAMES} {
|
||||
reverse_proxy {$ODOO_SERVICE}:8069
|
||||
reverse_proxy /longpolling/* {$ODOO_SERVICE}:8072
|
||||
encode zstd gzip
|
||||
}
|
15
odoo/caddy/Dockerfile.dev
Normal file
15
odoo/caddy/Dockerfile.dev
Normal file
@ -0,0 +1,15 @@
|
||||
FROM caddy:2-builder AS builder
|
||||
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddyserver/cache-handler
|
||||
|
||||
FROM caddy:2
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
||||
# Default variables
|
||||
ENV ODOO_SERVICE odoo
|
||||
ENV ODOO_SERVER_NAMES odoo
|
||||
|
||||
# Configuration
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
@ -7,6 +7,12 @@ services:
|
||||
dockerfile: Dockerfile.dev
|
||||
image: registry.yaltik.net/nginx:odoodev
|
||||
|
||||
caddy:
|
||||
build:
|
||||
context: ./caddy
|
||||
dockerfile: Dockerfile.dev
|
||||
image: registry.yaltik.net/caddy:odoodev
|
||||
|
||||
odoo8c7dev:
|
||||
build:
|
||||
context: ./odoo
|
||||
|
Loading…
x
Reference in New Issue
Block a user