mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
85 lines
1.7 KiB
YAML
85 lines
1.7 KiB
YAML
services:
|
|
odoo:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./odoo/Dockerfile
|
|
depends_on:
|
|
- postgres
|
|
tty: true
|
|
volumes:
|
|
- data-dir:${DATA_DIR}
|
|
- ./odoo/extra-addons:${EXTRA_ADDONS}
|
|
- ./odoo/custom-addons:${CUSTOM_ADDONS}
|
|
- ./odoo/entrypoint.sh:/entrypoint.sh
|
|
- ./odoo/odoorc.sh:/odoorc.sh
|
|
env_file:
|
|
- ./.env
|
|
networks:
|
|
- internal
|
|
|
|
postgres:
|
|
build:
|
|
context: ./postgres
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
tty: true
|
|
volumes:
|
|
- pg-data:${PGDATA}
|
|
- ./postgres/entrypoint.sh:/docker-entrypoint-initdb.d/entrypoint.sh
|
|
environment:
|
|
- POSTGRES_DB
|
|
- POSTGRES_USER
|
|
- POSTGRES_PASSWORD
|
|
- PGDATA
|
|
networks:
|
|
- internal
|
|
|
|
nginx:
|
|
image: nginx:1.24.0
|
|
depends_on:
|
|
- odoo
|
|
restart: unless-stopped
|
|
tty: true
|
|
expose:
|
|
- 80/tcp
|
|
volumes:
|
|
- ./nginx/nginx.conf:${NGINX_CONF}
|
|
- ./nginx/default.conf:${NGINX_DEFAULT_CONF}
|
|
environment:
|
|
- VIRTUAL_HOST
|
|
- LETSENCRYPT_HOST
|
|
- LETSENCRYPT_EMAIL
|
|
- CORS_ALLOWED_DOMAIN
|
|
networks:
|
|
- internal
|
|
|
|
nginx-proxy:
|
|
image: nginxproxy/nginx-proxy:1.3.0
|
|
depends_on:
|
|
- nginx
|
|
restart: unless-stopped
|
|
tty: true
|
|
volumes:
|
|
- ./nginx-proxy/nginx.conf:${NGINX_CONF}
|
|
- ./nginx-proxy/cors.conf:${NGINX_PROXY_CORS_CONF}
|
|
- certs:${NGINX_CERTS}:ro
|
|
- vhost:${NGINX_VHOST}
|
|
- html:${NGINX_HTML}
|
|
- ${DOCKER_SOCK}:${TEMP_DOCKER_SOCK}:ro
|
|
environment:
|
|
- TRUST_DOWNSTREAM_PROXY
|
|
- CORS_ALLOWED_DOMAIN
|
|
networks:
|
|
- internal
|
|
|
|
volumes:
|
|
data-dir:
|
|
pg-data:
|
|
certs:
|
|
vhost:
|
|
html:
|
|
pgadmin-data:
|
|
|
|
networks:
|
|
internal:
|
|
driver: bridge |