mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
141 lines
2.9 KiB
YAML
141 lines
2.9 KiB
YAML
services:
|
|
odoo:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./odoo/Dockerfile
|
|
args:
|
|
- ODOO_TAG
|
|
- ODOO_RC
|
|
- ROOT_PATH
|
|
- GITHUB_USER
|
|
- GITHUB_ACCESS_TOKEN
|
|
- ENTERPRISE_ADDONS
|
|
- THIRD_PARTY_ADDONS
|
|
- LOG_PATH
|
|
depends_on:
|
|
- postgres
|
|
tty: true
|
|
volumes:
|
|
- odoo-data:${DATA_DIR}
|
|
- ./odoo/extra-addons:${EXTRA_ADDONS}
|
|
- ./odoo/custom-addons:${CUSTOM_ADDONS}
|
|
- ./odoo/entrypoint.sh:/entrypoint.sh
|
|
environment:
|
|
- HOST=${DB_HOST}
|
|
- PORT=${DB_PORT}
|
|
- USER=${DB_USER}
|
|
- PASSWORD=${DB_PASSWORD}
|
|
- ODOO_TAG
|
|
- THIRD_PARTY_ADDONS
|
|
networks:
|
|
- internal
|
|
|
|
postgres:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./postgres/Dockerfile
|
|
args:
|
|
- POSTGRES_TAG
|
|
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
|
|
- DB_USER
|
|
- DB_TEMPLATE
|
|
- UNACCENT_TEMPLATE
|
|
- PGADMING_DB_NAME
|
|
- PGADMING_DB_USER
|
|
- PGADMIN_DB_PASSWORD
|
|
- AWS_HOST
|
|
- AWS_REGION
|
|
- AWS_ACCESS_KEY_ID
|
|
- AWS_SECRET_ACCESS_KEY
|
|
- AWS_BUCKETNAME
|
|
networks:
|
|
- internal
|
|
|
|
redis:
|
|
image: eqalpha/keydb:${REDIS_TAG}
|
|
platform: linux/amd64
|
|
ports:
|
|
- 6379:6379
|
|
restart: unless-stopped
|
|
networks:
|
|
- internal
|
|
volumes:
|
|
- redis-data:/var/lib/keydb
|
|
|
|
s3:
|
|
image: minio/minio:${S3_TAG}
|
|
environment:
|
|
- MINIO_ROOT_USER
|
|
- MINIO_ROOT_PASSWORD
|
|
- VIRTUAL_HOST=${MINIO_VIRTUAL_HOST}
|
|
- VIRTUAL_PORT=9001
|
|
- MINIO_BROWSER_REDIRECT_URL
|
|
command: server /data --console-address ":9001"
|
|
volumes:
|
|
- s3-data:/data
|
|
ports:
|
|
- 9000:9000
|
|
- 9001:9001
|
|
networks:
|
|
- internal
|
|
|
|
nginx:
|
|
image: nginx:${NGINX_TAG}
|
|
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:${NGINX_PROXY_TAG}
|
|
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:
|
|
odoo-data:
|
|
pg-data:
|
|
redis-data:
|
|
s3-data:
|
|
certs:
|
|
vhost:
|
|
html:
|
|
|
|
networks:
|
|
internal:
|
|
driver: bridge
|