mirror of
				https://github.com/odoocker/odoocker
				synced 2025-11-04 07:19:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			94 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			94 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
services:
 | 
						|
  odoo:
 | 
						|
    build:
 | 
						|
      context: ./
 | 
						|
      dockerfile: ./odoo/Dockerfile
 | 
						|
      args:
 | 
						|
        - ODOO_VERSION
 | 
						|
        - ODOO_RC
 | 
						|
        - ROOT_PATH
 | 
						|
        - GITHUB_USER
 | 
						|
        - GITHUB_ACCESS_TOKEN
 | 
						|
        - ENTERPRISE_REPO
 | 
						|
        - ENTERPRISE_ADDONS
 | 
						|
        - LOG_PATH
 | 
						|
    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.25.1
 | 
						|
    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.1
 | 
						|
    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:
 | 
						|
 | 
						|
networks:
 | 
						|
  internal:
 | 
						|
    driver: bridge
 |